Skip to content

Commit 16ff7bf

Browse files
lixuzhaJiri Kosina
authored andcommitted
HID: intel-ish-hid: fix wrong error handling in ishtp_cl_alloc_tx_ring()
When allocating tx ring buffers failed, should free tx buffers, not rx buffers. Signed-off-by: Zhang Lixu <[email protected]> Acked-by: Srinivas Pandruvada <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 9e4dbc4 commit 16ff7bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/intel-ish-hid/ishtp/client-buffers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ int ishtp_cl_alloc_tx_ring(struct ishtp_cl *cl)
8484
return 0;
8585
out:
8686
dev_err(&cl->device->dev, "error in allocating Tx pool\n");
87-
ishtp_cl_free_rx_ring(cl);
87+
ishtp_cl_free_tx_ring(cl);
8888
return -ENOMEM;
8989
}
9090

0 commit comments

Comments
 (0)