]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: xilinx: axienet: Use NL_SET_ERR_MSG instead of netdev_err
authorSean Anderson <sean.anderson@linux.dev>
Tue, 11 Jun 2024 15:41:16 +0000 (11:41 -0400)
committerJakub Kicinski <kuba@kernel.org>
Wed, 12 Jun 2024 21:54:56 +0000 (14:54 -0700)
commit32b06603f8790b34835af43d259152eb57827413
tree9bef91c3633c8ef2d39826a84b312b07e4b4cb0e
parent721478fe6a5cd243e289105e3fdd0ecdd9d39ac3
net: xilinx: axienet: Use NL_SET_ERR_MSG instead of netdev_err

This error message can be triggered by userspace. Use NL_SET_ERR_MSG so
the message is returned to the user and to avoid polluting the kernel
logs. Additionally, change the return value from EFAULT to EBUSY to
better reflect the error (which has nothing to do with addressing).

Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Link: https://lore.kernel.org/r/20240611154116.2643662-1-sean.anderson@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c