usb: renesas_usbhs: mod_host: fixup usbhsh_ureq_free() timing
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 10 Dec 2012 05:06:37 +0000 (21:06 -0800)
committerFelipe Balbi <balbi@ti.com>
Thu, 13 Dec 2012 09:58:44 +0000 (11:58 +0200)
commite0b64ce6fe0a9d4ce8cf97fea7fe5ec7125dea30
treea453a6d529acd8958a58fa433142edf81afd7e43
parentd9fa298f215e050dbb28a6f75fe76459ebd2e7f0
usb: renesas_usbhs: mod_host: fixup usbhsh_ureq_free() timing

usbhsh_ureq_free() free ureq which includes ubshs_pkt.
But current driver used usbhs_pkt after freed ureq.
This patch fixup this bug.
Special thanks to Chen

Reported-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/renesas_usbhs/mod_host.c