]> 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)
commit801ee9a58035d37d563e769c63d697a1142b1994
treea2f312634f5c551b47b71bd28d103cf96ccbe827
parent3b25f32e2e05376572c096e8eb5d0b0230657ade
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: cbd54fbbac12 ("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