From: Hans de Goede Date: Fri, 8 Nov 2013 15:37:26 +0000 (+0100) Subject: usb: Clear host_endpoint->streams when implicitly freeing streams X-Git-Tag: v3.15-rc1~137^2~26^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a7b562d08ad6db98d6c8ec634620a11aaf8921a;p=pandora-kernel.git usb: Clear host_endpoint->streams when implicitly freeing streams If streams are still allocated on device-reset or set-interface then the hcd code implictly frees the streams. Clear host_endpoint->streams in this case so that if a driver later tries to re-allocate them it won't run afoul of the device already having streams check in usb_alloc_streams(). Note normally streams still being allocated at reset / set-intf would be a driver bug, but this can happen without it being a driver bug on reset-resume. Signed-off-by: Hans de Goede Signed-off-by: Sarah Sharp --- Reading git-diff-tree failed