md - 1 of 10 - fix return code in set_disk_faulty()
PATCH 1/1 md - 1 of 10 - fix return code in set_disk_faulty()
From: Mike Tran <[email protected]>
If cannot find the device, return error (ENODEV)
Otherwise, return success (0)
----------- Diffstat output ------------
./drivers/md/md.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/md/md.c renamed from drivers/md/md.c~current~ +2 -2
@@ -2354,10 +2354,10 @@ static int set_disk_faulty(mddev_t *mdde rdev =find_rdev (mddev, dev);if (!rdev) -return 0 ; +return -ENODEV ;md_error (mddev, rdev); -return 1 ; +return 0 ; } static int md_ioctl(struct inode *inode, struct file *file,