usb: gadget: udc: avoid dereference before NULL check in ep_queue
authorJohn W. Linville <linville@tuxdriver.com>
Tue, 6 Jan 2015 19:49:47 +0000 (14:49 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jan 2015 18:01:46 +0000 (10:01 -0800)
commitf26d29e34e203296140334087fa3c81168626d76
treebb8956873c0431459f9fff7535a18ecd34f0dfad
parentf56e67f0a880a5b795cdb5f62614aafe264c5304
usb: gadget: udc: avoid dereference before NULL check in ep_queue

Coverity: CID 1260069

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Cc: Felipe Balbi <balbi@ti.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/bdc/bdc_ep.c