diff options
| author | Marcos Paulo de Souza <[email protected]> | 2019-06-14 22:41:06 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2019-06-15 07:37:34 +0000 |
| commit | 168b305b0cfb7467a6691993f922ecbdcfc00c98 (patch) | |
| tree | 3a928b55d7bab6574639814574ce611f836d4582 | |
| parent | raid5-cache: Need to do start() part job after adding journal device (diff) | |
| download | kernel-168b305b0cfb7467a6691993f922ecbdcfc00c98.tar.gz kernel-168b305b0cfb7467a6691993f922ecbdcfc00c98.zip | |
md: md.c: Return -ENODEV when mddev is NULL in rdev_attr_show
Commit c42d3240990814eec1e4b2b93fa0487fc4873aed
("md: return -ENODEV if rdev has no mddev assigned") changed
rdev_attr_store to return -ENODEV when rdev->mddev is NULL, now do the
same to rdev_attr_show.
Signed-off-by: Marcos Paulo de Souza <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
| -rw-r--r-- | drivers/md/md.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 04f4f131f9d6..86f4f2b5a724 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -3356,7 +3356,7 @@ rdev_attr_show(struct kobject *kobj, struct attribute *attr, char *page) if (!entry->show) return -EIO; if (!rdev->mddev) - return -EBUSY; + return -ENODEV; return entry->show(rdev, page); } |
