[PATCH v3] xhci-mem: init list heads at the beginning of init

2013-04-04 Thread Sergio Aguirre
is not yet initialized. Let's protect from that by moving inits to the beginning. Signed-off-by: Sergio Aguirre --- drivers/usb/host/xhci-mem.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c index 6dc238c.

[PATCH v2] xhci: prevent from potential null pointer dereference on failed init

2013-04-04 Thread Sergio Aguirre
ff-by: Sergio Aguirre --- drivers/usb/host/xhci-mem.c |9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c index 6dc238c..d110aeb 100644 --- a/drivers/usb/host/xhci-mem.c +++ b/drivers/usb/host/xhci-mem.c @@ -1

[PATCH] xhci: prevent from potential null pointer dereference on failed init

2013-04-03 Thread Sergio Aguirre
ff-by: Sergio Aguirre --- drivers/usb/host/xhci-mem.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c index 6dc238c..0f701f7 100644 --- a/drivers/usb/host/xhci-mem.c +++ b/drivers/usb/host/xhci-mem.c @@ -1