mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
[Bluetooth] Fix wrong argument in debug code of HIDP
In the debug code of the hidp_queue_report function, the device variable does not exist, replace it with session->hid. Signed-off-by: Dave Young <hidave.darkstar@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
parent
5e23b923da
commit
6792b5ec8d
1 changed files with 1 additions and 1 deletions
|
@ -247,7 +247,7 @@ static inline int hidp_queue_report(struct hidp_session *session, unsigned char
|
||||||
{
|
{
|
||||||
struct sk_buff *skb;
|
struct sk_buff *skb;
|
||||||
|
|
||||||
BT_DBG("session %p hid %p data %p size %d", session, device, data, size);
|
BT_DBG("session %p hid %p data %p size %d", session, session->hid, data, size);
|
||||||
|
|
||||||
if (!(skb = alloc_skb(size + 1, GFP_ATOMIC))) {
|
if (!(skb = alloc_skb(size + 1, GFP_ATOMIC))) {
|
||||||
BT_ERR("Can't allocate memory for new frame");
|
BT_ERR("Can't allocate memory for new frame");
|
||||||
|
|
Loading…
Reference in a new issue