]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet: get transport reference for passthru ctrl
authorChristoph Hellwig <hch@lst.de>
Thu, 17 Sep 2020 01:11:01 +0000 (18:11 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Sep 2020 08:36:25 +0000 (10:36 +0200)
commit682c383eca56eec920738ee050148f26acb42dac
treea2f312634f5c551b47b71bd28d103cf96ccbe827
parent3f24ffdc68c3ed470afff8d9405b90b4bc2c65de
nvmet: get transport reference for passthru ctrl

Grab a reference to the transport driver to ensure it can't be unloaded
while a passthrough controller is active.

Fixes: ac4baeef388b ("nvmet: add passthru code to process commands")
Reported-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
drivers/nvme/target/passthru.c