Commit e669359
usb: gadget: f_tcm: Don't free command immediately
commit c225d00 upstream.
Don't prematurely free the command. Wait for the status completion of
the sense status. It can be freed then. Otherwise we will double-free
the command.
Fixes: cff834c ("usb-gadget/tcm: Convert to TARGET_SCF_ACK_KREF I/O krefs")
Cc: stable@vger.kernel.org
Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/ae919ac431f16275e05ec819bdffb3ac5f44cbe1.1733876548.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 85241f7 commit e669359
1 file changed
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1066 | 1066 | | |
1067 | 1067 | | |
1068 | 1068 | | |
1069 | | - | |
1070 | 1069 | | |
1071 | 1070 | | |
1072 | 1071 | | |
| |||
1195 | 1194 | | |
1196 | 1195 | | |
1197 | 1196 | | |
1198 | | - | |
1199 | 1197 | | |
1200 | 1198 | | |
1201 | 1199 | | |
| |||
0 commit comments