From: Heiko Stübner Date: Sun, 21 Aug 2011 12:31:17 +0000 (+0200) Subject: s3c-hsudc: Fix possible nullpointer dereference during probe X-Git-Tag: v3.2-rc1~183^2~179^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da4fc14c9955bbcafb9cdcc34f9772f3e9481bb8;p=pandora-kernel.git s3c-hsudc: Fix possible nullpointer dereference during probe The usb-interrupt is requested before the endpoints are initalised. If an interrupt happens in the time between request_irq and the init of the endpoint-data (as seen on the Qisda ESx00 ebook-platforms), it is therefore possible for the interrupt handler to access endpoint- data before its creation resulting in a null-pointer dereference. This patch simply moves the irq request below the endpoint init. Signed-off-by: Heiko Stuebner Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed