diff options
author | Heiko Stübner <heiko@sntech.de> | 2011-08-21 14:31:17 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-22 16:03:13 -0700 |
commit | da4fc14c9955bbcafb9cdcc34f9772f3e9481bb8 (patch) | |
tree | 59f2c3b11e2924e06a73a0a05d4e430a9c81f3ff /drivers/usb/otg/twl6030-usb.c | |
parent | 94ab23dd254a1050870160bf9620cd115cb75028 (diff) | |
download | blackbird-op-linux-da4fc14c9955bbcafb9cdcc34f9772f3e9481bb8.tar.gz blackbird-op-linux-da4fc14c9955bbcafb9cdcc34f9772f3e9481bb8.zip |
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 <heiko@sntech.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/otg/twl6030-usb.c')
0 files changed, 0 insertions, 0 deletions