/[linux-patches]/genpatches-2.6/trunk/2.6.14/1062_5_acpi-video-brightness-null-deref.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/1062_5_acpi-video-brightness-null-deref.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 235 - (show annotations) (download) (as text)
Thu Dec 29 16:17:24 2005 UTC (14 years, 11 months ago) by dsd
File MIME type: text/x-diff
File size: 1114 byte(s)
2.6.14.5 thanks to kerframil
1 From: Yu Luming <luming.yu@gmail.com>
2 Date: Sat, 19 Nov 2005 23:53:56 +0000 (-0800)
3 Subject: [PATCH] apci: fix NULL deref in video/lcd/brightness
4 X-Git-Url: http://kernel.org/git/?p=linux/kernel/git/gregkh/linux-2.6.14.y.git;a=commitdiff;h=6968ecfca8822055cfe121214c0786e4eecc038e
5
6 [PATCH] apci: fix NULL deref in video/lcd/brightness
7
8 Fix Null pointer deref in video/lcd/brightness
9 http://bugzilla.kernel.org/show_bug.cgi?id=5571
10
11 Signed-off-by: Yu Luming <luming.yu@gmail.com>
12 Cc: "Brown, Len" <len.brown@intel.com>
13 Signed-off-by: Thomas Renninger <trenn@suse.de>
14 Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
15 Signed-off-by: Andrew Morton <akpm@osdl.org>
16 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 Signed-off-by: Chris Wright <chrisw@redhat.com>
18 ---
19
20 --- a/drivers/acpi/video.c
21 +++ b/drivers/acpi/video.c
22 @@ -813,7 +813,7 @@ acpi_video_device_write_brightness(struc
23
24 ACPI_FUNCTION_TRACE("acpi_video_device_write_brightness");
25
26 - if (!dev || count + 1 > sizeof str)
27 + if (!dev || !dev->brightness || count + 1 > sizeof str)
28 return_VALUE(-EINVAL);
29
30 if (copy_from_user(str, buffer, count))

  ViewVC Help
Powered by ViewVC 1.1.20