]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ENGR00229338: usb: fix using lock before initialization problem
authorPeter Chen <peter.chen@freescale.com>
Fri, 12 Oct 2012 07:23:49 +0000 (15:23 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:32 +0000 (08:35 +0200)
commit69a9fba74d8660d0c2ff0592ccfb2c666c1e3555
tree2a7991dce0a7275a4b42984e435fd8b28eac7645
parent40cf76d762281c7e70c6a1ff452620aba51232f1
ENGR00229338: usb: fix using lock before initialization problem

It will cause below problem if spin_lock debug is on:

BUG: spinlock lockup on CPU#0, swapper/1, 9a0292a0

The reason is the lock is used before initialization.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
drivers/usb/gadget/arcotg_udc.c
drivers/usb/host/ehci-arc.c