net: tehuti: fix error return code in bdx_probe()
authorJia-Ju Bai <baijiaju1990@gmail.com>
Fri, 5 Mar 2021 02:06:48 +0000 (18:06 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Mar 2021 20:59:32 +0000 (12:59 -0800)
commit38c26ff3048af50eee3fcd591921357ee5bfd9ee
tree5da31f23db3ee8bd9cc38f2e5437dded4c851a0e
parent00ff801bb8ce6711e919af4530b6ffa14a22390a
net: tehuti: fix error return code in bdx_probe()

When bdx_read_mac() fails, no error return code of bdx_probe()
is assigned.
To fix this bug, err is assigned with -EFAULT as error return code.

Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/tehuti/tehuti.c