diff options
| author | Kang Chen <[email protected]> | 2023-02-25 04:11:49 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-03-09 14:33:49 +0000 |
| commit | 514c7ff5fe56164b769d2d105f0a382ca98c0851 (patch) | |
| tree | bebf14348fb65ed58bba7066a7ae3d6ec8c8c0d5 /drivers/usb/cdns3/cdns3-debug.h | |
| parent | usb: gadget: udc: add return value check of kzalloc in mv_udc_probe (diff) | |
| download | kernel-514c7ff5fe56164b769d2d105f0a382ca98c0851.tar.gz kernel-514c7ff5fe56164b769d2d105f0a382ca98c0851.zip | |
usb: gadget: udc: replace kzalloc with devm_kzalloc in mv_udc_probe
This driver uses the unified memory management api, so replace
kzalloc with devm_kzalloc to avoid a memory leak.
Reported-by: Dongliang Mu <[email protected]>
Link: https://lore.kernel.org/all/CAD-N9QX5i5toj8cs7DxBjYWtRGf3ZRnfTAf809sFW6iX0Ktfmw@mail.gmail.com
Signed-off-by: Kang Chen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions
