From: Johan Hovold Date: Thu, 21 Mar 2013 11:36:48 +0000 (+0100) Subject: USB: fix urb-poison imbalance X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~135^2~178 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68a2bed130a10cffbf68620f41d08a900b1d776b;p=pandora-kernel.git USB: fix urb-poison imbalance The calls to usb_poison_urb and usb_unpoison_urb are expected to be balanced. However, if an urb that has not yet been submitted is poisoned, its reject counter will not be increased as its ep-field is NULL. A consecutive call to unpoison will thus in fact poison the urb as its reject counter will be decremented to a negative value, effectively preventing the urb from being submitted. Note that there are currently no in-kernel drivers affected by this. Cc: Alan Stern Acked-by: Alan Stern Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed