]> www.infradead.org Git - users/jedix/linux-maple.git/commit
e1000e: potentially incorrect return for e1000_set_d3_lplu_state_ich8lan
authorBruce Allan <bruce.w.allan@intel.com>
Wed, 8 Feb 2012 02:55:14 +0000 (02:55 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 07:49:36 +0000 (15:49 +0800)
commit3e159bfa3e771424b9d4f74ffe9e1273f4972cd2
tree5b6f316323b9a19fa4e292c189ab95de2ccd38ec
parent68660f8978036c5b9470a8a2995dfa8dab5658e3
e1000e: potentially incorrect return for e1000_set_d3_lplu_state_ich8lan

In the unlikely event that e1e_wphy() returns an error, the returned error
code is not propogated to the caller of e1000_set_d3_lplu_state_ich8lan().
With this change, there is a rare possibility that ret_val might not get
set so it must be initialized.

(cherry picked from commit d7eb33840bee3c8de3f64f3861350bcfac3eaf82)
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/e1000e/ich8lan.c