All of lore.kernel.org
 help / color / mirror / Atom feed
* apple bluetooth keyboard; bug #13104
@ 2009-10-29 12:39 Herwig Hochleitner
  0 siblings, 0 replies; only message in thread
From: Herwig Hochleitner @ 2009-10-29 12:39 UTC (permalink / raw)
  To: linux-bluetooth

Hello!

I recently bought the apple aluminium bluetooth keyboard, which is 
supported in the kernel by drivers/hid/hid-apple.c
I get the same behaviour as described in 
http://bugzilla.kernel.org/show_bug.cgi?id=13104

Ubuntu 9.04; 2.6.30-020630-generic x86_64 (mainline kernel)

First time connect dmesg output:

 > apple 0005:05AC:022D.0002: parse failed
 > apple: probe of 0005:05AC:022D.0002 failed with error -14

Power cycle the keyboard:

 > input: Apple Wireless Keyboard as 
/devices/pci0000:00/0000:00:1d.2/usb8/8-1/8-1:1.0/bluetooth/hci0/hci0:48/input10
 > apple 0005:05AC:022D.0003: input,hidraw1: BLUETOOTH HID v1.40 
Keyboard [Apple Wireless Keyboard] on 00:0D:F0:58:04:49

then it works.


I have tracked down the issue to the function hidp_parse() in 
net/bluetooth/hidp/core.c
More specifically it tries to read from

hidp_connadd_req *req->rd_data

via copy_from_user() and fails with -EFAULT.

Thoughts:
Why does it only fail the first time?
Where does hid->session->req come from?

Since I have no experience with kernel development yet, I don't know how 
to track this further. Any help will be much appreciated.

kind regards

Herwig Hochleitner

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-10-29 12:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-29 12:39 apple bluetooth keyboard; bug #13104 Herwig Hochleitner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.