projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e4dbc4
)
HID: intel-ish-hid: fix wrong error handling in ishtp_cl_alloc_tx_ring()
author
Zhang Lixu
<lixu.zhang@intel.com>
Wed, 16 Oct 2019 00:15:59 +0000
(08:15 +0800)
committer
Jiri Kosina
<jkosina@suse.cz>
Wed, 16 Oct 2019 06:26:55 +0000
(08:26 +0200)
When allocating tx ring buffers failed, should free tx buffers, not rx buffers.
Signed-off-by: Zhang Lixu <lixu.zhang@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/intel-ish-hid/ishtp/client-buffers.c
patch
|
blob
|
history
diff --git
a/drivers/hid/intel-ish-hid/ishtp/client-buffers.c
b/drivers/hid/intel-ish-hid/ishtp/client-buffers.c
index 1b0a0cc605e7740d07d8e0fd8c976105abdfae2e..513d7a4a1b8acd176a673375d6f594c3820e116a 100644
(file)
--- a/
drivers/hid/intel-ish-hid/ishtp/client-buffers.c
+++ b/
drivers/hid/intel-ish-hid/ishtp/client-buffers.c
@@
-84,7
+84,7
@@
int ishtp_cl_alloc_tx_ring(struct ishtp_cl *cl)
return 0;
out:
dev_err(&cl->device->dev, "error in allocating Tx pool\n");
- ishtp_cl_free_
r
x_ring(cl);
+ ishtp_cl_free_
t
x_ring(cl);
return -ENOMEM;
}