Re: [PATCH] usb: gadget: mv_u3d: add check for dma mapping error

2016-11-03 Thread Felipe Balbi
Hi, Alexey Khoroshilov writes: > mv_u3d_req_to_trb() does not check for dma mapping errors. > > By the way, the patch improves readability of mv_u3d_start_queue() > by rearranging its code with two semantic modifications: > - assignment zero to ep->processing if

[PATCH] usb: gadget: mv_u3d: add check for dma mapping error

2016-10-28 Thread Alexey Khoroshilov
mv_u3d_req_to_trb() does not check for dma mapping errors. By the way, the patch improves readability of mv_u3d_start_queue() by rearranging its code with two semantic modifications: - assignment zero to ep->processing if usb_gadget_map_request() fails; - propagation of error code from