From: Jesper Juhl Date: Mon, 1 Aug 2011 21:39:17 +0000 (+0200) Subject: viacam: Don't explode if pci_find_bus() returns NULL X-Git-Tag: v3.2-rc1~185^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10e4ac572eeffe5317019bd7330b6058a400dfc2;p=pandora-kernel.git viacam: Don't explode if pci_find_bus() returns NULL In the unlikely case that pci_find_bus() should return NULL viacam_serial_is_enabled() is going to dereference a NULL pointer and blow up. Better safe than sorry, so be defensive and check the pointer. Signed-off-by: Jesper Juhl Acked-by: Jonathan Corbet Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed