summaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorDuoming Zhou <duoming@zju.edu.cn>2024-03-06 17:12:59 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-06-16 13:23:34 +0200
commitd2640251f94078e1dcf0a26b1815601f6dbd5440 (patch)
treee2284eaaf922c952f988713be437ab2c2159dd20 /net/switchdev/switchdev.c
parent732e700a1689fbdb8ac94faeb7765e81456b0a95 (diff)
um: Fix return value in ubd_init()
[ Upstream commit 31a5990ed253a66712d7ddc29c92d297a991fdf2 ] When kmalloc_array() fails to allocate memory, the ubd_init() should return -ENOMEM instead of -1. So, fix it. Fixes: f88f0bdfc32f ("um: UBD Improvements") Signed-off-by: Duoming Zhou <duoming@zju.edu.cn> Reviewed-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions