]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm: Assemble.c fix coverity issues
authorNigel Croxon <ncroxon@redhat.com>
Tue, 25 Jun 2024 11:57:28 +0000 (07:57 -0400)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Tue, 25 Jun 2024 13:51:59 +0000 (15:51 +0200)
commit3e6358e9aa0618f6a7de3a58e545caaada03739f
tree30a6b479b0a0eb262d5a9809c46b4e93fece0960
parentf98340f1b830d950978abba752b2b9b004528faf
mdadm: Assemble.c fix coverity issues

Fixing the following coding errors the coverity tools found:

* Event dereference: Dereferencing "pre_exist", which is known to be "NULL".
* Event parameter_hidden: Declaration hides parameter "c".
* Event leaked_storage: Variable "pre_exist" going out of scope leaks the
  storage it points to.
* Event leaked_storage: Variable "avail" going out of scope leaks the
  storage it points to.

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