]> git.baikalelectronics.ru Git - kernel.git/commit
libnvdimm/label: Return -ENXIO for no slot in __blk_label_update
authorZhang Qilong <zhangqilong3@huawei.com>
Sat, 5 Dec 2020 11:50:56 +0000 (19:50 +0800)
committerDan Williams <dan.j.williams@intel.com>
Thu, 17 Dec 2020 00:53:00 +0000 (16:53 -0800)
commitb7d5505d24935155e4d8bba893c4a34ed1358da5
treed6e272f97377e641195786300d5f7953f4425f32
parentf2d6e45b90a309f2a6c20390ea1f925735e6e6e3
libnvdimm/label: Return -ENXIO for no slot in __blk_label_update

Forget to set error code when nd_label_alloc_slot failed, and we
add it to avoid overwritten error code.

Fixes: 4708970ff4c2 ("libnvdimm: write blk label set")
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Link: https://lore.kernel.org/r/20201205115056.2076523-1-zhangqilong3@huawei.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/label.c