summaryrefslogtreecommitdiffstats
path: root/kernel/kthread.c
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2013-03-15 18:58:50 +0530
committerFelipe Balbi <balbi@ti.com>2013-03-18 10:18:28 +0200
commit06d9db7273c7bd5b07624b313faeea57a4b31056 (patch)
treebcb20fc04852788f9fcabbf88585d26d18bd309d /kernel/kthread.c
parent273daf2f2ab9f42d82f017b20fcf902ec8d7cffa (diff)
downloadop-kernel-dev-06d9db7273c7bd5b07624b313faeea57a4b31056.zip
op-kernel-dev-06d9db7273c7bd5b07624b313faeea57a4b31056.tar.gz
usb: musb: gadget: do *unmap_dma_buffer* only for valid DMA addr
musb does not use DMA buffer for ep0 but it uses the same giveback function *musb_g_giveback* for all endpoints (*musb_g_ep0_giveback* calls *musb_g_giveback*). So for ep0 case request.dma will be '0' and will result in kernel OOPS if tried to *unmap_dma_buffer* for requests in ep0. Fixed it by doing *unmap_dma_buffer* only for valid DMA addr and checking that musb_ep->dma is valid when unmapping. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'kernel/kthread.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud