diff options
author | Jacob Keller <[email protected]> | 2016-02-04 10:47:54 -0800 |
---|---|---|
committer | Jeff Kirsher <[email protected]> | 2016-04-05 12:48:55 -0700 |
commit | de66c610a6adade32bf955f67b4f4f4aaeeeff85 (patch) | |
tree | 8beeac9f412eb038b83e2e35900073ddc01b550e /tools/perf/scripts/python/futex-contention.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 <[email protected]>
Tested-by: Krishneil Singh <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions