linux/drivers/hid/usbhid
Li Zefan 3ba5619f06 HID: fix a potential bug in pointer casting
Don't directly cast list_head * to foo *, this works only when list
is the first member of struct foo, and we should not make the assumption
how members are ordered in the structure.

i.e. struct *f = (struct *f)pos will work if:
	struct foo {
		struct list_head list;
		int i;
	};

but will fail if:
	struct foo {
		int i;
		struct list_head list;
	}

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2008-01-28 14:51:19 +01:00
..
hid-core.c Merge branch 'hidraw' into for-linus 2007-10-14 14:47:56 +02:00
hid-ff.c changed email 2007-10-20 00:47:32 +02:00
hid-lgff.c HID: make debugging output runtime-configurable 2007-07-09 14:03:35 +02:00
hid-pidff.c HID: fix autocentering of PID devices 2007-07-09 14:13:35 +02:00
hid-plff.c HID: use hid-plff driver for GreenAsia 0e8f:0003 devices 2007-10-14 13:40:01 +02:00
hid-quirks.c HID: Implement horizontal wheel handling for A4 Tech X5-005D 2008-01-28 14:51:19 +01:00
hid-tmff.c HID: fix a potential bug in pointer casting 2008-01-28 14:51:19 +01:00
hid-zpff.c HID: make debugging output runtime-configurable 2007-07-09 14:03:35 +02:00
hiddev.c HID: hiddev - fix compiler warning 2007-10-31 13:30:34 +01:00
Kconfig HID: Add support for Apple aluminum USB keyboards. 2008-01-28 14:51:19 +01:00
Makefile USB HID: encapsulate quirk handling into hid-quirks.c 2007-04-19 13:27:04 +02:00
usbhid.h USB HID: move usbhid code from drivers/usb/input to drivers/hid/usbhid 2007-04-11 10:36:02 +02:00
usbkbd.c get rid of input BIT* duplicate defines 2007-10-19 11:53:42 -07:00
usbmouse.c get rid of input BIT* duplicate defines 2007-10-19 11:53:42 -07:00