aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strcpy.c
diff options
context:
space:
mode:
authorIdo Schimmel <[email protected]>2020-09-10 14:01:26 +0300
committerDavid S. Miller <[email protected]>2020-09-10 15:06:48 -0700
commite1b9efe6baebe79019a2183176686a0e709388ae (patch)
tree8cf0e971d1b6760c02115f8d2a753d19b3e78206 /lib/test_fortify/write_overflow-strcpy.c
parent9d3b2d3e4942cb82630f0d638de4b2253c0af56d (diff)
net: Fix bridge enslavement failure
When a netdev is enslaved to a bridge, its parent identifier is queried. This is done so that packets that were already forwarded in hardware will not be forwarded again by the bridge device between netdevs belonging to the same hardware instance. The operation fails when the netdev is an upper of netdevs with different parent identifiers. Instead of failing the enslavement, have dev_get_port_parent_id() return '-EOPNOTSUPP' which will signal the bridge to skip the query operation. Other callers of the function are not affected by this change. Fixes: 7e1146e8c10c ("net: devlink: introduce devlink_compat_switch_id_get() helper") Signed-off-by: Ido Schimmel <[email protected]> Reported-by: Vasundhara Volam <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Reviewed-by: Nikolay Aleksandrov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strcpy.c')
0 files changed, 0 insertions, 0 deletions