]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdmon: fix segfault
authorMateusz Kusiak <mateusz.kusiak@intel.com>
Mon, 2 Jan 2023 08:46:21 +0000 (09:46 +0100)
committerJes Sorensen <jes@trained-monkey.org>
Wed, 4 Jan 2023 15:25:56 +0000 (10:25 -0500)
commit9b429fc0a4ffd7028b3b336589d38e32fb9045dc
treee7e684de086b3bfbdd2afca2f69b05a9b598c11e
parent3a87fa67112dc2c2c3664aeecd0b49cb4b6ceaa9
mdmon: fix segfault

Mdmon crashes if stat2devnm returns null.
Use open_mddev to check if device is mddevice and get name using
fd2devnm.
Refactor container name handling.

Signed-off-by: Mateusz Kusiak <mateusz.kusiak@intel.com>
Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
Makefile
mdmon.c