Skip to content

Commit 02729d1

Browse files
Dan Carpentergregkh
authored andcommitted
thunderbolt: Fix reset response_type
There is a mistake here where we accidentally use sizeof(TB_CFG_PKG_RESET) instead of just TB_CFG_PKG_RESET. The size of an int is 4 so it's the same as TB_CFG_PKG_NOTIFY_ACK. Fixes: d7f781b ("thunderbolt: Rework control channel to be more reliable") Reported-by: Colin King <[email protected]> Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Mika Westerberg <[email protected]> Cc: stable <[email protected]> # 4.13 Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e545f0d commit 02729d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thunderbolt/ctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ struct tb_cfg_result tb_cfg_reset(struct tb_ctl *ctl, u64 route,
804804
req->request_type = TB_CFG_PKG_RESET;
805805
req->response = &reply;
806806
req->response_size = sizeof(reply);
807-
req->response_type = sizeof(TB_CFG_PKG_RESET);
807+
req->response_type = TB_CFG_PKG_RESET;
808808

809809
res = tb_cfg_request_sync(ctl, req, timeout_msec);
810810

0 commit comments

Comments
 (0)