diff options
author | Alex Dewar <alex.dewar90@gmail.com> | 2020-08-25 10:19:28 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-08-28 12:21:46 +0200 |
commit | cc34073c6248e9cec801bf690d1455f264d12357 (patch) | |
tree | 1ea9cabd74dc2134b15cfe397ead90c08e9883d4 /drivers/staging/rtl8188eu/os_dep/usb_intf.c | |
parent | 9289cdf399922a1bd801a8cd946a79581c00a380 (diff) |
staging: emxx_udc: Fix passing of NULL to dma_alloc_coherent()
In nbu2ss_eq_queue() memory is allocated with dma_alloc_coherent(),
though, strangely, NULL is passed as the struct device* argument. Pass
the UDC's device instead. Fix up the corresponding call to
dma_free_coherent() in the same way.
Build-tested on x86 only.
Fixes: 33aa8d45a4fe ("staging: emxx_udc: Add Emma Mobile USB Gadget driver")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Dewar <alex.dewar90@gmail.com>
Link: https://lore.kernel.org/r/20200825091928.55794-1-alex.dewar90@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu/os_dep/usb_intf.c')
0 files changed, 0 insertions, 0 deletions