diff options
author | 2016-02-04 10:47:54 -0800 | |
---|---|---|
committer | 2016-04-05 12:48:55 -0700 | |
commit | de66c610a6adade32bf955f67b4f4f4aaeeeff85 (patch) | |
tree | 8beeac9f412eb038b83e2e35900073ddc01b550e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fm10k: use ether_addr_copy to copy MAC address (diff) | |
download | linux-dev-de66c610a6adade32bf955f67b4f4f4aaeeeff85.tar.xz linux-dev-de66c610a6adade32bf955f67b4f4f4aaeeeff85.zip |
fm10k: prevent null pointer dereference of msix_entries table
According to the C standard dereferencing a variable before it is
checked invokes undefined behavior, and thus compilers are free to
assume the check for NULL isn't necessary. Prevent this by re-ordering
the NULL check of msix_entries in fm10k_free_mbx_irq.
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions