summaryrefslogtreecommitdiff
path: root/certs
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2019-06-21 11:12:00 +0200
committerJens Axboe <axboe@kernel.dk>2019-06-21 03:14:30 -0600
commit2f5af4ab7de14bd35f3435e6a47300276bbb6c17 (patch)
tree6599a22dc9f902a9c39290bba7e2a8e536effbcc /certs
parent510fd8ea98fcb586c01aef93d87c060a159ac30a (diff)
lightnvm: fix uninitialized pointer in nvm_remove_tgt()
With gcc 4.1: drivers/lightnvm/core.c: In function ‘nvm_remove_tgt’: drivers/lightnvm/core.c:510: warning: ‘t’ is used uninitialized in this function Indeed, if no NVM devices have been registered, t will be an uninitialized pointer, and may be dereferenced later. A call to nvm_remove_tgt() can be triggered from userspace by issuing the NVM_DEV_REMOVE ioctl on the lightnvm control device. Fix this by preinitializing t to NULL. Fixes: 843f2edbdde085b4 ("lightnvm: do not remove instance under global lock") Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Matias Bjørling <mb@lightnvm.io> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions