From: Mathias Nyman Date: Thu, 11 Sep 2014 10:55:48 +0000 (+0300) Subject: xhci: Fix null pointer dereference if xhci initialization fails X-Git-Tag: v3.2.64~64 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=commitdiff_plain;h=cd2b663832bf1eeb2f5d15e092546ae0c0d58135;hp=cd2b663832bf1eeb2f5d15e092546ae0c0d58135 xhci: Fix null pointer dereference if xhci initialization fails commit c207e7c50f31113c24a9f536fcab1e8a256985d7 upstream. If xhci initialization fails before the roothub bandwidth domains (xhci->rh_bw[i]) are allocated it will oops when trying to access rh_bw members in xhci_mem_cleanup(). Reported-by: Manuel Reimer Signed-off-by: Mathias Nyman Signed-off-by: Greg Kroah-Hartman Signed-off-by: Ben Hutchings ---