summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb
diff options
context:
space:
mode:
authorHuzaifa Sidhpurwala <huzaifas@redhat.com>2011-03-01 15:54:22 +0530
committerFelipe Balbi <balbi@ti.com>2011-03-01 12:35:23 +0200
commitc88ba39c1ea6a1591b6842199069ff50748d2073 (patch)
treeaffac446cabe2ff46063ab0eec1c754a8d166a51 /drivers/usb/musb
parent70045c57f31f998a7206baa81167c7bc9f452cef (diff)
downloadop-kernel-dev-c88ba39c1ea6a1591b6842199069ff50748d2073.zip
op-kernel-dev-c88ba39c1ea6a1591b6842199069ff50748d2073.tar.gz
usb: musb: tusb: Fix possible null pointer dereference in tusb6010_omap.c
tusb_dma was being dereferenced when it was nul Signed-off-by: Huzaifa Sidhpurwala <huzaifas@redhat.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r--drivers/usb/musb/tusb6010_omap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/musb/tusb6010_omap.c b/drivers/usb/musb/tusb6010_omap.c
index c061a88..99cb541 100644
--- a/drivers/usb/musb/tusb6010_omap.c
+++ b/drivers/usb/musb/tusb6010_omap.c
@@ -680,7 +680,7 @@ dma_controller_create(struct musb *musb, void __iomem *base)
tusb_dma = kzalloc(sizeof(struct tusb_omap_dma), GFP_KERNEL);
if (!tusb_dma)
- goto cleanup;
+ goto out;
tusb_dma->musb = musb;
tusb_dma->tbase = musb->ctrl_base;
@@ -721,6 +721,6 @@ dma_controller_create(struct musb *musb, void __iomem *base)
cleanup:
dma_controller_destroy(&tusb_dma->controller);
-
+out:
return NULL;
}
OpenPOWER on IntegriCloud