diff options
author | Johannes Berg <johannes.berg@intel.com> | 2021-06-12 14:32:39 +0300 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2021-06-22 15:11:12 +0300 |
commit | f00c3f9e2cfc144d5f40803ea3cd0d0cb09745cc (patch) | |
tree | c732a708af2a7241729ad0b7a954c40e2afbeea9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 8835a64f74c46baebfc946cd5a2c861b866ebcee (diff) |
iwlwifi: pcie: handle pcim_iomap_table() failures better
pcim_iomap_table() might return NULL, so we shouldn't unconditionally
dereference the return value by taking the [0] entry.
Handle this better by checking for NULL first, and then separately
checking if the [0] entry is NULL.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210612142637.9aa4f0e3574a.I458b283f203d5f927f00be1bfbd4b8ebf11c5ae4@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions