aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorKang Chen <[email protected]>2023-02-25 12:11:48 +0800
committerGreg Kroah-Hartman <[email protected]>2023-03-09 15:33:14 +0100
commit5aacc9d540cea790fe4419b61bfa8a1218a4474a (patch)
treecfd217490cbb8c43ec6c9d170c4ccfab44be766a /drivers/usb/cdns3/cdns3-debug.h
parent2ae4e0dea3b0c7b380821bac05e03a71da1f452f (diff)
usb: gadget: udc: add return value check of kzalloc in mv_udc_probe
Even an 8-byte kzalloc will fail when we don't have enough memory, so we need a nullptr check and do the cleanup when it fails. Reported-by: eriri <[email protected]> Link: https://bugzilla.kernel.org/show_bug.cgi?id=217081 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