diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-12-07 13:23:21 (GMT) |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-12-17 19:47:20 (GMT) |
commit | 971beb83aeb2a309175682cf5683d64fd4591841 (patch) | |
tree | 0d119998a04d94bb41da4b22d2c310c569ae3b4f /net | |
parent | 503914cf4a4b5dbe3f844e0a92f412ae99fde70e (diff) | |
download | linux-971beb83aeb2a309175682cf5683d64fd4591841.tar.xz |
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 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; |