summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMingming Cao <mmc@linux.vnet.ibm.com>2020-08-25 20:26:41 +0300
committerDavid S. Miller <davem@davemloft.net>2020-08-26 03:28:14 +0300
commit9f13457377907fa253aef560e1a37e1ca4197f9b (patch)
treeaa0c308053539adcc7f419e58799e5725d65d271 /tools/perf/scripts/python/export-to-postgresql.py
parent2c6500e82e5190b038f0b79f85a20da55bdd4b86 (diff)
downloadlinux-9f13457377907fa253aef560e1a37e1ca4197f9b.tar.xz
ibmvnic fix NULL tx_pools and rx_tools issue at do_reset
At the time of do_rest, ibmvnic tries to re-initalize the tx_pools and rx_pools to avoid re-allocating the long term buffer. However there is a window inside do_reset that the tx_pools and rx_pools were freed before re-initialized making it possible to deference null pointers. This patch fix this issue by always check the tx_pool and rx_pool are not NULL after ibmvnic_login. If so, re-allocating the pools. This will avoid getting into calling reset_tx/rx_pools with NULL adapter tx_pools/rx_pools pointer. Also add null pointer check in reset_tx_pools and reset_rx_pools to safe handle NULL pointer case. Signed-off-by: Mingming Cao <mmc@linux.vnet.ibm.com> Signed-off-by: Dany Madden <drt@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions