aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-plat.c
diff options
context:
space:
mode:
authorMirsad Todorovac <[email protected]>2024-11-09 21:18:41 +0000
committerDominique Martinet <[email protected]>2024-11-16 08:23:19 +0000
commitff1060813d9347e8c45c8b8cff93a4dfdb6726ad (patch)
tree5f29cb928e5544b9810c3ec2fe515a6164423e67 /drivers/usb/cdns3/cdns3-plat.c
parentfs/9p: replace functions v9fs_cache_{register|unregister} with direct calls (diff)
downloadkernel-ff1060813d9347e8c45c8b8cff93a4dfdb6726ad.tar.gz
kernel-ff1060813d9347e8c45c8b8cff93a4dfdb6726ad.zip
net/9p/usbg: fix handling of the failed kzalloc() memory allocation
On the linux-next, next-20241108 vanilla kernel, the coccinelle tool gave the following error report: ./net/9p/trans_usbg.c:912:5-11: ERROR: allocation function on line 911 returns NULL not ERR_PTR on failure kzalloc() failure is fixed to handle the NULL return case on the memory exhaustion. Fixes: a3be076dc174d ("net/9p/usbg: Add new usb gadget function transport") Cc: Michael Grzeschik <[email protected]> Cc: Eric Van Hensbergen <[email protected]> Cc: Latchesar Ionkov <[email protected]> Cc: Dominique Martinet <[email protected]> Cc: Christian Schoenebeck <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Mirsad Todorovac <[email protected]> Message-ID: <[email protected]> Signed-off-by: Dominique Martinet <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-plat.c')
0 files changed, 0 insertions, 0 deletions