mirror of
https://github.com/torvalds/linux.git
synced 2026-09-12 20:53:03 +02:00
net: ethernet: oa_tc6: Fix for the wrong data type
Inadvertently bool data type is used where int is supposed to
be used. This might turn a negative error code into true or
false and sign of the return code would be lost.
Fixes: 8f9bf857e4 ("net: ethernet: oa_tc6: implement internal PHY initialization")
Signed-off-by: Selvamani Rajagopal <Selvamani.Rajagopal@onsemi.com>
Link: https://patch.msgid.link/20260824-fix-race-condition-and-crash-v7-4-4323279b18f2@onsemi.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
349c366365
commit
3cc2aa96b9
|
|
@ -455,7 +455,7 @@ static int oa_tc6_mdiobus_read(struct mii_bus *bus, int addr, int regnum)
|
|||
{
|
||||
struct oa_tc6 *tc6 = bus->priv;
|
||||
u32 regval;
|
||||
bool ret;
|
||||
int ret;
|
||||
|
||||
ret = oa_tc6_read_register(tc6, OA_TC6_PHY_STD_REG_ADDR_BASE |
|
||||
(regnum & OA_TC6_PHY_STD_REG_ADDR_MASK),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user