]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
devlink: Fix some error codes
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 26 Oct 2020 08:00:59 +0000 (11:00 +0300)
committerJakub Kicinski <kuba@kernel.org>
Wed, 28 Oct 2020 00:05:57 +0000 (17:05 -0700)
commit6c211809c87f0de939f3bd60ceec05338ae6eba1
tree74ec3fba521f61e9a817df4691ee2f62cc28bc15
parent6daa1da4e262b0cd52ef0acc1989ff22b5540264
devlink: Fix some error codes

These paths don't set the error codes.  It's especially important in
devlink_nl_region_notify_build() where it leads to a NULL dereference in
the caller.

Fixes: 544e7c33ec2f ("net: devlink: Add support for port regions")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20201026080059.GA1628785@mwanda
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/devlink.c