From: Jesper Juhl Date: Fri, 21 Mar 2008 21:55:45 +0000 (+0100) Subject: USB: test for NULL return from platform_get_resource() in ohci_hcd_sm501_drv_remove() X-Git-Tag: v2.6.26-rc1~1061^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=119fc8c9acde650fb92b44c34ea6fc84feb0f6dd;p=pandora-kernel.git USB: test for NULL return from platform_get_resource() in ohci_hcd_sm501_drv_remove() platform_get_resource() may return null, so although it seems it will never do so here unless there's a bug elsewhere, it does no harm to be defensive and test. Signed-off-by: Jesper Juhl Acked-by: David Brownell Acked-by: Magnus Damm Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed