]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: gadget: network: fix bind() error path
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 22 Oct 2012 20:15:00 +0000 (22:15 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 3 Jan 2013 03:32:59 +0000 (03:32 +0000)
commit3bda29813bdadfcda3513fb9b0d384534ac27dd7
tree2405188fbccc09d18d6515491a69da265858541f
parentb2b7d3370d2b9ed53c9f8f9e77ae1b017cb8dd4b
usb: gadget: network: fix bind() error path

commit e79cc615a9bb44da72c499ccfa2c9c4bbea3aa84 upstream.

I think this is wrong since 72c973dd ("usb: gadget: add
usb_endpoint_descriptor to struct usb_ep"). If we fail to allocate an ep
or bail out early we shouldn't check for the descriptor which is
assigned at ep_enable() time.

Cc: Tatyana Brokhman <tlinder@codeaurora.org>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/gadget/f_ecm.c
drivers/usb/gadget/f_eem.c
drivers/usb/gadget/f_ncm.c
drivers/usb/gadget/f_rndis.c
drivers/usb/gadget/f_subset.c