nvmet-tcp: fix possible NULL deref
authorSagi Grimberg <sagi@grimberg.me>
Sat, 3 Aug 2019 03:23:38 +0000 (20:23 -0700)
committerSagi Grimberg <sagi@grimberg.me>
Thu, 29 Aug 2019 19:55:01 +0000 (12:55 -0700)
commitb627200762c7e8153fe1620fdd52a68f4ca2f8a5
treebcfa0691899f54188b68315e57e1ea93d5076094
parent42df26d4df7b4437db7d3847c36abc3e5aa237f1
nvmet-tcp: fix possible NULL deref

We must only call sgl_free for sgl that we actually
allocated.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/target/tcp.c