android_kernel_samsung_msm8976/drivers/hid
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
..
usbhid HID: fix a potential bug in pointer casting 2008-01-28 14:51:19 +01:00
hid-core.c HID: add hidraw interface 2007-10-14 14:47:26 +02:00
hid-debug.c
hid-input.c HID: Implement horizontal wheel handling for A4 Tech X5-005D 2008-01-28 14:51:19 +01:00
hidraw.c Use helpers to obtain task pid in printks 2007-10-19 11:53:43 -07:00
Kconfig HID: add hidraw interface 2007-10-14 14:47:26 +02:00
Makefile HID: add hidraw interface 2007-10-14 14:47:26 +02:00