From: Felipe Balbi Date: Mon, 2 Feb 2015 22:24:17 +0000 (-0600) Subject: usb: gadget: function: phonet: balance usb_ep_disable calls X-Git-Tag: omap-for-v4.1/wl12xx-dt~45^2~10^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ec36f7fe20ef919cc15171e1da1b6739222541a;p=pandora-kernel.git usb: gadget: function: phonet: balance usb_ep_disable calls f_phonet's ->set_alt() method will call usb_ep_disable() potentially on an endpoint which is already disabled. That's something the gadget/function driver must guarantee that it's always balanced. In order to balance the calls, just make sure the endpoint was enabled before by means of checking the validity of driver_data. Reported-by: Pali Rohár Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed