]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
Bluetooth: Fix PTR_ERR return of wrong pointer in hidp_setup_hid()
authorRoel Kluin <roel.kluin@gmail.com>
Mon, 7 Dec 2009 13:23:21 +0000 (14:23 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 17 Dec 2009 19:47:20 +0000 (11:47 -0800)
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>
net/bluetooth/hidp/core.c

index 569750010fd320518001adf61ea501a577f5feb7..18e7f5a43dc4fd8eda8d34a7b65e98752c86946f 100644 (file)
@@ -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;