Unverified Commit d2347dd0 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!15701 usb: gadget: f_tcm: Don't free command immediately

parents a7c59ba6 aef37cf3
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1068,7 +1068,6 @@ static void usbg_cmd_work(struct work_struct *work)
out:
	transport_send_check_condition_and_sense(se_cmd,
			TCM_UNSUPPORTED_SCSI_OPCODE, 1);
	transport_generic_free_cmd(&cmd->se_cmd, 0);
}

static struct usbg_cmd *usbg_get_cmd(struct f_uas *fu,
@@ -1199,7 +1198,6 @@ static void bot_cmd_work(struct work_struct *work)
out:
	transport_send_check_condition_and_sense(se_cmd,
				TCM_UNSUPPORTED_SCSI_OPCODE, 1);
	transport_generic_free_cmd(&cmd->se_cmd, 0);
}

static int bot_submit_command(struct f_uas *fu,