]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ACPI: don't free non-existent backlight in acpi video module
authorKeith Packard <keithp@keithp.com>
Thu, 6 Aug 2009 22:57:54 +0000 (15:57 -0700)
committerLen Brown <len.brown@intel.com>
Fri, 28 Aug 2009 19:17:07 +0000 (15:17 -0400)
commite29b3ee3b005897fbdcfdd4b3190776e38739d70
treecb27db40bc33117aebe3d60a7eef33317f9df5b0
parent82e7784f57a81faf673b09bc468e736d582fe754
ACPI: don't free non-existent backlight in acpi video module

acpi_video_put_one_device was attempting to remove sysfs entries and
unregister a backlight device without first checking that said backlight
device structure had been created.

Signed-off-by: Keith Packard <keithp@keithp.com>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/video.c