acerhdf: driver didn't verify the pointers in which it got product information
authorRahul Chaturvedi <rkc@chromium.org>
Tue, 20 Jul 2010 22:19:33 +0000 (15:19 -0700)
committerMatthew Garrett <mjg@redhat.com>
Tue, 3 Aug 2010 13:48:55 +0000 (09:48 -0400)
commit5cf4c07a2805388b5645079039d9a8b4b9269e08
treef5b1e2bd32be46a026bed6afa997b997ae0f6c94
parent210183d4af87cc70d7e4552d325f238734cade15
acerhdf: driver didn't verify the pointers in which it got product information

Driver didn't verify the pointers in which it got product information back
from DMI; on QEMU one of the pointers came back null, which made the
driver crash and subsequently caused a kernel panic.

Signed-off-by: Rahul Chaturvedi <rkc@chromium.org>
Signed-off-by: Peter Feuerer <peter@piie.net>
Cc: Borislav Petkov <petkovbb@gmail.com>
Cc: Andreas Mohr <andi@lisas.de>
Cc: Len Brown <lenb@kernel.org>
Cc: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/acerhdf.c