usb: gadget: mv_u3d: add check for dma mapping error
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Thu, 3 Nov 2016 13:16:31 +0000 (16:16 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 8 Nov 2016 10:52:13 +0000 (12:52 +0200)
commit6ffd65154e23a4cf5d2da400e0fa7142a4474b98
tree445894e36ae4594b2942294832d2a15f7ed12c8c
parent5eb30cedced64cea63005555c1ef67359ffe191f
usb: gadget: mv_u3d: add check for dma mapping error

mv_u3d_req_to_trb() does not check for dma mapping errors.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/mv_u3d_core.c