]> git.karo-electronics.de Git - karo-tx-linux.git/commit
target/user: Don't free expired command when time out
authorSheng Yang <sheng@yasker.org>
Fri, 26 Feb 2016 22:59:58 +0000 (14:59 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 5 Mar 2016 07:36:11 +0000 (23:36 -0800)
commitdbfc15a5feed8d41ed056713774b16df0e15f287
tree59f41e56f7e191006a968f9e24f1e40a8a0a7115
parenta1171a33d00de4d48bd5bdc95ae44a73917ddc6a
target/user: Don't free expired command when time out

Which would result in NPE after when userspace connected again.

Expired command would be freed either when handling command(by userspace),
or when device was tearing down

Reviewed-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Sheng Yang <sheng@yasker.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_user.c