From: Hans de Goede Date: Thu, 7 Nov 2013 07:19:45 +0000 (+0100) Subject: xhci: xhci_mem_cleanup: make sure cmd_ring_reserved_trbs really is 0 X-Git-Tag: v3.15-rc1~137^2~26^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=127329d76b8534fb58c207db1f172d8468b828ff;p=pandora-kernel.git xhci: xhci_mem_cleanup: make sure cmd_ring_reserved_trbs really is 0 cmd_ring_reserved_trbs gets decremented by xhci_free_stream_info(), so set it to 0 after freeing all rings, otherwise it wraps around to a very large value when rings with streams are free-ed. Before this patch the wrap-around could be triggered when xhci_resume calls xhci_mem_cleanup if the controller resume fails. Signed-off-by: Hans de Goede Signed-off-by: Sarah Sharp --- Reading git-diff-tree failed