]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: pblk-gc: fix an error pointer dereference in init
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 15 Apr 2017 18:55:51 +0000 (20:55 +0200)
committerJens Axboe <axboe@fb.com>
Sun, 16 Apr 2017 16:06:34 +0000 (10:06 -0600)
commitdde11eead6cad931165cb2c00642255b84770eba
treed3a6a9678a54352ec12c22f35f9625f3b5a87fb8
parent666397e18deba643eacca2a0ea156767789ad16f
lightnvm: pblk-gc: fix an error pointer dereference in init

These labels are reversed so we could end up dereferencing an error
pointer or leaking.

Fixes: 7f347ba6bb3a ("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-gc.c