]> git.neil.brown.name Git - mdadm.git/commit
mdadm: managemon.c fix coverity issues
authorNigel Croxon <ncroxon@redhat.com>
Wed, 24 Jul 2024 13:04:08 +0000 (09:04 -0400)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Tue, 30 Jul 2024 14:05:47 +0000 (16:05 +0200)
commit2a4c40766d654dcbf5911d1b7b63bbbe8b2c0128
tree7c8881aade47df5d5a09c255fb298d79c69d18e3
parent4b3644ab4ce6df8c7f64c189c12b66627ff3e027
mdadm: managemon.c fix coverity issues

Fixing the following coding errors the coverity tools found:

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

* Event check_after_deref: Null-checking "new" suggests that it may
be null, but it has already been dereferenced on all paths leading
to the check.

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