diff options
author | Ido Schimmel <idosch@mellanox.com> | 2017-05-18 13:03:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-18 11:27:21 -0400 |
commit | c0e01eac7ada785fdeaea1ae5476ec1cf3b00374 (patch) | |
tree | f184c432b4633aa2792f078de146810c2c6c972b /kernel | |
parent | b7ce520e9f71ff65d0aa0ad86223f94ae4095fae (diff) | |
download | linux-c0e01eac7ada785fdeaea1ae5476ec1cf3b00374.tar.gz linux-c0e01eac7ada785fdeaea1ae5476ec1cf3b00374.tar.bz2 linux-c0e01eac7ada785fdeaea1ae5476ec1cf3b00374.zip |
mlxsw: spectrum: Avoid possible NULL pointer dereference
In case we got an FDB notification for a port that doesn't exist we
execute an FDB entry delete to prevent it from re-appearing the next
time we poll for notifications.
If the operation failed we would trigger a NULL pointer dereference as
'mlxsw_sp_port' is NULL.
Fix it by reporting the error using the underlying bus device instead.
Fixes: 12f1501e7511 ("mlxsw: spectrum: remove FDB entry in case we get unknown object notification")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions