summaryrefslogtreecommitdiff
path: root/fs/nfs/write.c
diff options
context:
space:
mode:
authorMirsad Todorovac <mtodorovac69@gmail.com>2024-11-09 22:18:41 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-05 14:03:05 +0100
commit2cdb416de8b5795fd25fadcb69e1198b6df6d8cc (patch)
treee8f59e8b9b3b04e43f37a8b71dd01b0f0c2d89cd /fs/nfs/write.c
parentf888356886be46922dba737d65087df607bd1a46 (diff)
downloadlinux-2cdb416de8b5795fd25fadcb69e1198b6df6d8cc.tar.gz
linux-2cdb416de8b5795fd25fadcb69e1198b6df6d8cc.tar.bz2
linux-2cdb416de8b5795fd25fadcb69e1198b6df6d8cc.zip
net/9p/usbg: fix handling of the failed kzalloc() memory allocation
[ Upstream commit ff1060813d9347e8c45c8b8cff93a4dfdb6726ad ] 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 <m.grzeschik@pengutronix.de> Cc: Eric Van Hensbergen <ericvh@kernel.org> Cc: Latchesar Ionkov <lucho@ionkov.net> Cc: Dominique Martinet <asmadeus@codewreck.org> Cc: Christian Schoenebeck <linux_oss@crudebyte.com> Cc: v9fs@lists.linux.dev Cc: linux-kernel@vger.kernel.org Signed-off-by: Mirsad Todorovac <mtodorovac69@gmail.com> Message-ID: <20241109211840.721226-2-mtodorovac69@gmail.com> Signed-off-by: Dominique Martinet <asmadeus@codewreck.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/nfs/write.c')
0 files changed, 0 insertions, 0 deletions