]> git.ipfire.org Git - thirdparty/mdadm.git/commit
super1: check fd before passing to get_dev_size() in add_to_super1()
authorMateusz Kusiak <mateusz.kusiak@intel.com>
Tue, 20 Feb 2024 10:56:11 +0000 (11:56 +0100)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Fri, 23 Feb 2024 11:44:12 +0000 (12:44 +0100)
commit7ccf947eb595c1bb729c32ba18ce171dada76a68
treea037dcd2bf16c2af2c12a2a3650377ebe5117042
parente44d13f466e30c018887cd5aaf1212ed9f510813
super1: check fd before passing to get_dev_size() in add_to_super1()

Check if file descriptor is valid before passing it to get_dev_size() in
add_to_super().

Signed-off-by: Mateusz Kusiak <mateusz.kusiak@intel.com>
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
super1.c