]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm: Monitor.c fix coverity issues
authorNigel Croxon <ncroxon@redhat.com>
Mon, 15 Jul 2024 14:13:46 +0000 (10:13 -0400)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Tue, 16 Jul 2024 14:18:00 +0000 (16:18 +0200)
commit5cb6df3f190feccc8b3e82da2b01a0e01e612a25
treedae75790d5740b32e3714afbe536deeff2db8fef
parentf8274feea5c63300e893109840943513df924da2
mdadm: Monitor.c fix coverity issues

Fixing the following coding errors the coverity tools found:

* Event check_return: Calling "fcntl(fd, 2, 1)" without checking
return value. This library function may fail and return an error code.

* Dereferencing "sl", which is known to be "NULL".

* Event fixed_size_dest: You might overrun the 32-character fixed-size
string "devnm" by copying "tmp" without checking the length.

Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
Monitor.c