diff options
| author | 2023-07-25 14:40:53 +0800 | |
|---|---|---|
| committer | 2023-07-30 13:53:55 +0200 | |
| commit | cd119fdc3ee1450fbf7f78862b5de44c42b6e47f (patch) | |
| tree | 72af7085b847a0fadb2670fbafb7ef06c7c50d93 /drivers/usb/cdns3/cdns3-imx.c | |
| parent | serial: sprd: Assign sprd_port after initialized to avoid wrong access (diff) | |
| download | wireguard-linux-cd119fdc3ee1450fbf7f78862b5de44c42b6e47f.tar.xz wireguard-linux-cd119fdc3ee1450fbf7f78862b5de44c42b6e47f.zip | |
serial: sprd: Fix DMA buffer leak issue
Release DMA buffer when _probe() returns failure to avoid memory leak.
Fixes: f4487db58eb7 ("serial: sprd: Add DMA mode support")
Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230725064053.235448-2-chunyan.zhang@unisoc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions
