]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
usb: gadget: pch_udc: Check for DMA mapping error
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 23 Mar 2021 15:36:22 +0000 (17:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Mar 2021 15:53:30 +0000 (16:53 +0100)
commit4a28d77e359009b846951b06f7c0d8eec8dce298
treefbed2cd50b379a13957245db836cd3db43a91531
parentfbdbbe6d3ee502b3bdeb4f255196bb45003614be
usb: gadget: pch_udc: Check for DMA mapping error

DMA mapping might fail, we have to check it with dma_mapping_error().
Otherwise DMA-API is not happy:

  DMA-API: pch_udc 0000:02:02.4: device driver failed to check map error[device address=0x00000000027ee678] [size=64 bytes] [mapped as single]

Fixes: abab0c67c061 ("usb: pch_udc: Fixed issue which does not work with g_serial")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210323153626.54908-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/pch_udc.c