* [PATCH] Fix Null point in video/lcd/brightness
@ 2005-11-19 14:32 Yu Luming
0 siblings, 0 replies; only message in thread
From: Yu Luming @ 2005-11-19 14:32 UTC (permalink / raw)
To: akpm-3NddpPZAyC0, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
len.brown-ral2JQCrhuEAvxtiuMwx3w, trenn-l3A5Bk7waGM,
nacc-r/Jw6+rmf7HQT0dZR+AlfA
Fix Null point in video/lcd/brightness
http://bugzilla.kernel.org/show_bug.cgi?id=5571
Signed-off-by: Luming Yu
Cc: "Brown, Len"
Signed-off-by: Thomas Renninger <trenn-l3A5Bk7waGM@public.gmane.org>
Signed-off-by: Nishanth Aravamudan <nacc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
---
video.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/acpi/video.c.orig 2005-10-28 02:02:08.000000000 +0200
+++ a/drivers/acpi/video.c 2005-11-04 14:53:25.000000000 +0100
@@ -813,7 +813,7 @@
ACPI_FUNCTION_TRACE("acpi_video_device_write_brightness");
- if (!dev || count + 1 > sizeof str)
+ if (!dev || !dev->brightness || count + 1 > sizeof str)
return_VALUE(-EINVAL);
if (copy_from_user(str, buffer, count))
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-11-19 14:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-19 14:32 [PATCH] Fix Null point in video/lcd/brightness Yu Luming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox