aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-12-07 14:23:21 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-12-17 11:47:20 -0800
commit971beb83aeb2a309175682cf5683d64fd4591841 (patch)
tree0d119998a04d94bb41da4b22d2c310c569ae3b4f /net/bluetooth
parent503914cf4a4b5dbe3f844e0a92f412ae99fde70e (diff)
downloadkernel_samsung_smdk4412-971beb83aeb2a309175682cf5683d64fd4591841.zip
kernel_samsung_smdk4412-971beb83aeb2a309175682cf5683d64fd4591841.tar.gz
kernel_samsung_smdk4412-971beb83aeb2a309175682cf5683d64fd4591841.tar.bz2
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/bluetooth')
-rw-r--r--net/bluetooth/hidp/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c
index 5697500..18e7f5a 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;