]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
fm10k: prevent possibly uninitialized variable
authorBruce Allan <bruce.w.allan@intel.com>
Wed, 10 Feb 2016 22:45:47 +0000 (14:45 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 5 Apr 2016 19:49:31 +0000 (12:49 -0700)
commitc4114e3db6429c665adc3db871685c474a467efe
treee87e987b3a61b6908859dfa4ff7278ebfe6f6ac8
parentd2e0721b18f320232dc36a0e4cc7beb620e8c9bd
fm10k: prevent possibly uninitialized variable

If 'attr_flag < (1 << (2 * FM10K_TEST_MSG_NESTED))' is ever false, err
will be used uninitialized.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c