/[linux-patches]/genpatches-2.6/trunk/2.6.14/1421_15.4_grip-crash.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/1421_15.4_grip-crash.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: 763 byte(s)
2.6.14-11, rebase against local tree
1 Backported to 2.6.14.7 by Kerin Millar <kerframil@gmail.com>:
2
3 From stable-bounces@linux.kernel.org Wed Feb 1 21:18:58 2006
4 Date: Thu, 02 Feb 2006 00:09:00 -0500
5 From: Dmitry Torokhov <dtor_core@ameritech.net>
6 To: stable@kernel.org
7 Cc:
8 Subject: Input: grip - fix crash when accessing device
9
10 Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
11 Signed-off-by: Chris Wright <chrisw@sous-sol.org>
12 ---
13
14 --- linux-2.6.14.7.orig/drivers/input/joystick/grip.c 2005-10-27 19:02:08.000000000 -0500
15 +++ linux-2.6.14.7/drivers/input/joystick/grip.c 2006-02-06 21:12:44.000000000 -0500
16 @@ -191,6 +191,9 @@ static void grip_poll(struct gameport *g
17 for (i = 0; i < 2; i++) {
18
19 dev = grip->dev + i;
20 + if (!dev)
21 + continue;
22 +
23 grip->reads++;
24
25 switch (grip->mode[i]) {

  ViewVC Help
Powered by ViewVC 1.1.20