diff options
author | Rana Shahout <ranas@mellanox.com> | 2015-08-23 16:12:14 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-25 23:45:09 +0300 |
commit | 5283af899adec1a7765e413e43b27a335fadac5d (patch) | |
tree | 00d5c753c8b2b25a6471743a6b7d459a853c4a9b /include/rdma/rdma_cm.h | |
parent | 94c10f0ea303473884f69edd6bbb0cedcf570105 (diff) | |
download | linux-5283af899adec1a7765e413e43b27a335fadac5d.tar.xz |
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/rdma/rdma_cm.h')
0 files changed, 0 insertions, 0 deletions