From: Sebastian Andrzej Siewior Date: Mon, 22 Oct 2012 20:15:00 +0000 (+0200) Subject: usb: gadget: network: fix bind() error path X-Git-Tag: v3.2.36~131 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bda29813bdadfcda3513fb9b0d384534ac27dd7;p=pandora-kernel.git 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 Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Felipe Balbi Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed