[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191016001559.27947-1-lixu.zhang@intel.com>
Date: Wed, 16 Oct 2019 08:15:59 +0800
From: Zhang Lixu <lixu.zhang@...el.com>
To: jikos@...nel.org, linux-input@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, srinivas.pandruvada@...ux.intel.com,
benjamin.tissoires@...hat.com, Zhang Lixu <lixu.zhang@...el.com>
Subject: [PATCH] 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 <lixu.zhang@...el.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>
---
drivers/hid/intel-ish-hid/ishtp/client-buffers.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hid/intel-ish-hid/ishtp/client-buffers.c b/drivers/hid/intel-ish-hid/ishtp/client-buffers.c
index 1b0a0cc605e7..513d7a4a1b8a 100644
--- 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_rx_ring(cl);
+ ishtp_cl_free_tx_ring(cl);
return -ENOMEM;
}
--
2.17.1
Powered by blists - more mailing lists