Skip to content

Commit

Permalink
[Bluetooth] Fix wrong argument in debug code of HIDP
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dave Young authored and David S. Miller committed Oct 22, 2007
1 parent 5e23b92 commit 6792b5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bluetooth/hidp/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ static inline int hidp_queue_report(struct hidp_session *session, unsigned char
{
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))) {
BT_ERR("Can't allocate memory for new frame");
Expand Down

0 comments on commit 6792b5e

Please sign in to comment.