diff options
author | Rana Shahout <ranas@mellanox.com> | 2015-08-23 15:12:14 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-25 22:45:09 +0200 |
commit | 5283af899adec1a7765e413e43b27a335fadac5d (patch) | |
tree | 00d5c753c8b2b25a6471743a6b7d459a853c4a9b /drivers/uwb/pal.c | |
parent | ah4: Fix error return in ah_input(). (diff) | |
download | linux-5283af899adec1a7765e413e43b27a335fadac5d.tar.xz linux-5283af899adec1a7765e413e43b27a335fadac5d.zip |
net/mlx5e: Avoid accessing NULL pointer at ndo_select_queue
To avoid multiply/division operations on the data path,
we hold a {channel, tc}==>txq mapping table.
We held this mapping table inside the channel object that is
being destroyed upon some configuration operations (e.g MTU change).
So in case ndo_select_queue occurs during such a configuration operation,
it may access a NULL channel pointer, resulting in kernel panic.
To fix this issue we moved the {channel, tc}==>txq mapping table
outside the channel object so that it will be available also
during such configuration operations.
Signed-off-by: Rana Shahout <ranas@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/uwb/pal.c')
0 files changed, 0 insertions, 0 deletions