Skip to content
Commit 6c211809 authored by Dan Carpenter's avatar Dan Carpenter Committed by Jakub Kicinski
Browse files

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: 544e7c33 ("net: devlink: Add support for port regions")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20201026080059.GA1628785@mwanda


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 6daa1da4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment