aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRana Shahout <ranas@mellanox.com>2015-08-23 16:12:14 +0300
committerDavid S. Miller <davem@davemloft.net>2015-08-25 13:45:09 -0700
commit5283af899adec1a7765e413e43b27a335fadac5d (patch)
tree00d5c753c8b2b25a6471743a6b7d459a853c4a9b /include
parentah4: Fix error return in ah_input(). (diff)
downloadlinux-dev-5283af899adec1a7765e413e43b27a335fadac5d.tar.xz
linux-dev-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 'include')
0 files changed, 0 insertions, 0 deletions