/[linux-patches]/genpatches-2.6/trunk/2.6.14/1407_15.2_input-hid-pid-oops.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/1407_15.2_input-hid-pid-oops.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (show annotations) (download) (as text)
Tue Mar 14 13:34:17 2006 UTC (14 years, 8 months ago) by johnm
File MIME type: text/x-diff
File size: 962 byte(s)
2.6.14-11, rebase against local tree
1 Backported from 2.6.15 by Kerin Millar <kerframil@gmail.com>:
2
3 From stable-bounces@linux.kernel.org Sat Jan 14 14:01:19 2006
4 From: Dmitry Torokhov <dtor_core@ameritech.net>
5 To: stable@kernel.org
6 Date: Sat, 14 Jan 2006 16:56:49 -0500
7 Subject: Input: HID - fix an oops in PID initialization code
8
9 Input: HID - fix an oops in PID initialization code
10
11 Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
12 Signed-off-by: Chris Wright <chrisw@sous-sol.org>
13
14 --- linux-2.6.14.orig/drivers/usb/input/pid.c 2006-01-18 06:53:14.000000000 +0000
15 +++ linux-2.6.14/drivers/usb/input/pid.c 2006-01-23 19:05:31.000000000 +0000
16 @@ -261,7 +261,7 @@
17 int hid_pid_init(struct hid_device *hid)
18 {
19 struct hid_ff_pid *private;
20 - struct hid_input *hidinput = list_entry(&hid->inputs, struct hid_input, list);
21 + struct hid_input *hidinput = list_entry(hid->inputs.next, struct hid_input, list);
22
23 private = hid->ff_private = kzalloc(sizeof(struct hid_ff_pid), GFP_KERNEL);
24 if (!private)

  ViewVC Help
Powered by ViewVC 1.1.20