]> git.baikalelectronics.ru Git - kernel.git/commit
net: mdio: Fix ENOMEM return value in BCM6368 mux bus controller
authorNiels Dossche <dossche.niels@gmail.com>
Thu, 28 Apr 2022 21:19:32 +0000 (23:19 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 30 Apr 2022 00:58:41 +0000 (17:58 -0700)
commit81af0cea2efbbe701e1e0b0fb1d61b44a8857e3d
treeabff667484042d3cf0e2fed35f1d44945f92e8e8
parent8a068617e02df63535bf1a3febfa11d555ef769c
net: mdio: Fix ENOMEM return value in BCM6368 mux bus controller

Error values inside the probe function must be < 0. The ENOMEM return
value has the wrong sign: it is positive instead of negative.
Add a minus sign.

Fixes: a610c95f8d34 ("net: mdio: Add BCM6368 MDIO mux bus controller")
Signed-off-by: Niels Dossche <dossche.niels@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20220428211931.8130-1-dossche.niels@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/mdio/mdio-mux-bcm6368.c