usb: gadget: dummy_hcd: fix null-deref free req
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 25 Jan 2012 14:18:58 +0000 (15:18 +0100)
committerFelipe Balbi <balbi@ti.com>
Thu, 9 Feb 2012 07:54:00 +0000 (09:54 +0200)
_ep to ep is a pointer substraction so ep won't be zero unless _ep was
8. This was not intendent by the author, it was probably a typo while
checking for NULL of the argument.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Felipe Balbi <balbi@ti.com>

No differences found