original_kernel/drivers/net/bonding
Jia-Ju Bai 2055a99da8 net: bonding: fix error return code of bond_neigh_init()
When slave is NULL or slave_ops->ndo_neigh_setup is NULL, no error
return code of bond_neigh_init() is assigned.
To fix this bug, ret is assigned with -EINVAL in these cases.

Fixes: 9e99bfefdb ("bonding: fix bond_neigh_init()")
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>
2021-03-08 12:05:36 -08:00
..
Makefile
bond_3ad.c
bond_alb.c
bond_debugfs.c
bond_main.c
bond_netlink.c
bond_options.c
bond_procfs.c
bond_sysfs.c
bond_sysfs_slave.c
bonding_priv.h