]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: check mm before use
authorMatias Bjørling <m@bjorling.me>
Sun, 6 Dec 2015 10:25:46 +0000 (11:25 +0100)
committerJens Axboe <axboe@fb.com>
Mon, 7 Dec 2015 16:14:19 +0000 (09:14 -0700)
commitdbccb23021534056336da37255cc0c4fff6c5fd5
tree65aef1e138b3ab6e5dbe53782e41dc8c9a8aa36e
parent06a58edf5135b3179b35d64373d80f165303a707
lightnvm: check mm before use

The core can may issue I/Os before a media manager is registered with
the lightnvm subsystem. Make sure that we don't call the media manager
->end_io prematurely with a null pointer.

Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/lightnvm.c