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>
Fri, 11 Mar 2016 05:49:04 +0000 (21:49 -0800)
commitb25c786399367b9a8bd955d8496669d019409bec
treea6979bb8d06aab4d218292775640f08a867066ab
parent26418649eead52619d8dd6cbc6760a1b144dbcd2
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