]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: fix some error code in pblk-init.c
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 15 Apr 2017 18:55:53 +0000 (20:55 +0200)
committerJens Axboe <axboe@fb.com>
Sun, 16 Apr 2017 16:06:34 +0000 (10:06 -0600)
commitc3777f88c1b84adae55ae206e3f16851b6201bb2
tree4436b5565dd06b552fbf36a3ec37049e0825f332
parent5e57034397669864ba98dbdeff82e7e0faef4430
lightnvm: fix some error code in pblk-init.c

There were a bunch of places in pblk_lines_init() where we didn't set an
error code.  And in pblk_writer_init() we accidentally return 1 instead
of a correct error code, which would result in a Oops later.

Fixes: 11a5d6fdf919 ("lightnvm: physical block device (pblk) target")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/pblk-init.c