Repository navigation
Commit b25c786
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>1 parent 2641864 commit b25c786
1 file changed
Lines changed: 17 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
563 | | - | |
564 | | - | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
565 | 567 | | |
| 568 | + | |
| 569 | + | |
566 | 570 | | |
567 | 571 | | |
568 | 572 | | |
| |||
976 | 980 | | |
977 | 981 | | |
978 | 982 | | |
979 | | - | |
| 983 | + | |
980 | 984 | | |
981 | | - | |
982 | | - | |
983 | | - | |
| 985 | + | |
| 986 | + | |
984 | 987 | | |
| 988 | + | |
985 | 989 | | |
986 | 990 | | |
987 | 991 | | |
| |||
996 | 1000 | | |
997 | 1001 | | |
998 | 1002 | | |
| 1003 | + | |
| 1004 | + | |
999 | 1005 | | |
1000 | 1006 | | |
1001 | 1007 | | |
| |||
1004 | 1010 | | |
1005 | 1011 | | |
1006 | 1012 | | |
1007 | | - | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
1008 | 1017 | | |
1009 | 1018 | | |
1010 | | - | |
| 1019 | + | |
1011 | 1020 | | |
1012 | 1021 | | |
1013 | 1022 | | |
| |||
0 commit comments