diff options
author | Kang Chen <void0red@gmail.com> | 2023-02-25 12:11:49 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-09 15:33:49 +0100 |
commit | 514c7ff5fe56164b769d2d105f0a382ca98c0851 (patch) | |
tree | bebf14348fb65ed58bba7066a7ae3d6ec8c8c0d5 /drivers/usb/cdns3/cdns3-debug.h | |
parent | 5aacc9d540cea790fe4419b61bfa8a1218a4474a (diff) | |
download | linux-514c7ff5fe56164b769d2d105f0a382ca98c0851.tar.gz linux-514c7ff5fe56164b769d2d105f0a382ca98c0851.tar.bz2 linux-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 <mudongliangabcd@gmail.com>
Link: https://lore.kernel.org/all/CAD-N9QX5i5toj8cs7DxBjYWtRGf3ZRnfTAf809sFW6iX0Ktfmw@mail.gmail.com
Signed-off-by: Kang Chen <void0red@gmail.com>
Link: https://lore.kernel.org/r/20230225041149.136-2-void0red@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions