usb: gadget: composite: dequeue cdev->req before free it in composite_dev_cleanup
authorLi Jun <B47624@freescale.com>
Tue, 15 Jul 2014 14:07:40 +0000 (22:07 +0800)
committerFelipe Balbi <balbi@ti.com>
Wed, 16 Jul 2014 15:05:01 +0000 (10:05 -0500)
commitf2267089ea17fa97b796b1b4247e3f8957655df3
tree1c93af96beef656045db885678c10629a1b32c5b
parent371254ce462fcea2d09ffa30e20f01538b833080
usb: gadget: composite: dequeue cdev->req before free it in composite_dev_cleanup

This patch try to dequeue the cdev->req to guarantee the request is not queued
before free it.

Signed-off-by: Li Jun <b47624@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/composite.c