]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-fc: fix request private initialization
authorJames Smart <jsmart2021@gmail.com>
Sat, 27 Oct 2018 19:41:54 +0000 (12:41 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 2 Nov 2018 14:14:45 +0000 (08:14 -0600)
commit39d412c9a4d08f9e987ae01be4f9fdea5fe5002e
treeebe45567a8f479d13799b88b03622a82e6360585
parent8b81b9fe71d516e1d9c30cbe0b49b4a0023e2c53
nvme-fc: fix request private initialization

The patch made to avoid Coverity reporting of out of bounds access
on aen_op moved the assignment of a pointer, leaving it null when it
was subsequently used to calculate a private pointer. Thus the private
pointer was bad.

Move/correct the private pointer initialization to be in sync with the
patch.

Fixes: 14404f3995e3 ("nvme-fc: rework the request initialization code")
Signed-off-by: James Smart <jsmart2021@gmail.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/fc.c