Skip to content
Commit bdaf1327 authored by Elad Grupi's avatar Elad Grupi Committed by Christoph Hellwig
Browse files

nvmet-tcp: fix a segmentation fault during io parsing error

In case there is an io that contains inline data and it goes to
parsing error flow, command response will free command and iov
before clearing the data on the socket buffer.
This will delay the command response until receive flow is completed.

Fixes: 872d26a3

 ("nvmet-tcp: add NVMe over TCP target driver")
Signed-off-by: default avatarElad Grupi <elad.grupi@dell.com>
Signed-off-by: default avatarHou Pu <houpu.main@gmail.com>
Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent f8ee34a9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment