diff options
author | Jacob Keller <jacob.e.keller@intel.com> | 2016-02-04 10:47:54 -0800 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2016-04-05 12:48:55 -0700 |
commit | de66c610a6adade32bf955f67b4f4f4aaeeeff85 (patch) | |
tree | 8beeac9f412eb038b83e2e35900073ddc01b550e /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 11c49f79b294081010f7e13a95c6b40c4d36b1de (diff) |
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/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions