From: Mathias Nyman Date: Wed, 28 May 2014 20:51:13 +0000 (+0300) Subject: xhci: delete endpoints from bandwidth list before freeing whole device X-Git-Tag: omap-for-v3.16/fixes-against-rc1~111^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dc2808c4729bf080487e61b80ee04e0fdb12a37;p=pandora-kernel.git xhci: delete endpoints from bandwidth list before freeing whole device Lists of endpoints are stored for bandwidth calculation for roothub ports. Make sure we remove all endpoints from the list before the whole device, containing its endpoints list_head stuctures, is freed. This used to be done in the wrong order in xhci_mem_cleanup(), and triggered an oops in resume from S4 (hibernate). Cc: stable Tested-by: Ville Syrjälä Signed-off-by: Mathias Nyman Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed