nvmet_fc: Clear SG list to avoid double frees
authorJames Smart <jsmart2021@gmail.com>
Fri, 24 Mar 2017 03:41:26 +0000 (20:41 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 4 Apr 2017 15:48:23 +0000 (09:48 -0600)
commitc820ad4cdacbb272ec993738d1c7eb96f09ddcd5
tree6b93bd11c0af36fab0ea336b42d558e9437cb9fc
parentf77fc87c3716f59be0248bf430fbf9d7888902b1
nvmet_fc: Clear SG list to avoid double frees

Clear SG list to avoid double frees of payload page list

Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/target/fc.c