diff options
author | Yinjun Zhang <[email protected]> | 2021-10-29 13:29:02 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2021-10-29 13:25:32 +0100 |
commit | f8d384a640dd32aaf0a05fec137ccbf0e986b09f (patch) | |
tree | 844b589d6e182d4c8774c0c3c6ac3b3a23b20dc4 /net/switchdev/switchdev.c | |
parent | e300a85db1f16a5805033feb56ec1861f02c7b1c (diff) |
nfp: fix NULL pointer access when scheduling dim work
Each rx/tx ring has a related dim work, when rx/tx ring number is
decreased by `ethtool -L`, the corresponding rx_ring or tx_ring is
assigned NULL, while its related work is not destroyed. When scheduled,
the work will access NULL pointer.
Fixes: 9d32e4e7e9e1 ("nfp: add support for coalesce adaptive feature")
Signed-off-by: Yinjun Zhang <[email protected]>
Signed-off-by: Louis Peens <[email protected]>
Signed-off-by: Simon Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions