summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorJacob Keller <jacob.e.keller@intel.com>2016-02-04 10:47:54 -0800
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2016-04-05 12:48:55 -0700
commitde66c610a6adade32bf955f67b4f4f4aaeeeff85 (patch)
tree8beeac9f412eb038b83e2e35900073ddc01b550e /include/linux
parent11c49f79b294081010f7e13a95c6b40c4d36b1de (diff)
downloadcachepc-linux-de66c610a6adade32bf955f67b4f4f4aaeeeff85.tar.gz
cachepc-linux-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 'include/linux')
0 files changed, 0 insertions, 0 deletions