diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-12-07 14:23:21 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-12-17 20:47:20 +0100 |
commit | 971beb83aeb2a309175682cf5683d64fd4591841 (patch) | |
tree | 0d119998a04d94bb41da4b22d2c310c569ae3b4f /net | |
parent | net: sh_eth alignment fix for sh7724 using NET_IP_ALIGN V2 (diff) | |
download | linux-971beb83aeb2a309175682cf5683d64fd4591841.tar.xz linux-971beb83aeb2a309175682cf5683d64fd4591841.zip |
Bluetooth: Fix PTR_ERR return of wrong pointer in hidp_setup_hid()
Return the PTR_ERR of the correct pointer.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/hidp/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c index 569750010fd3..18e7f5a43dc4 100644 --- a/net/bluetooth/hidp/core.c +++ b/net/bluetooth/hidp/core.c @@ -770,7 +770,7 @@ static int hidp_setup_hid(struct hidp_session *session, hid = hid_allocate_device(); if (IS_ERR(hid)) - return PTR_ERR(session->hid); + return PTR_ERR(hid); session->hid = hid; session->req = req; |