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: omap-for-v3.8/fixes-for-merge-window-v4-signed~82^2~59^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e79cc615a9bb44da72c499ccfa2c9c4bbea3aa84;p=pandora-kernel.git usb: gadget: network: fix bind() error path 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 Cc: stable Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed