igb: Fix for improper exit in igb_get_i2c_client
authorCarolyn Wyborny <carolyn.wyborny@intel.com>
Wed, 23 Jan 2013 03:37:58 +0000 (03:37 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 15 Feb 2013 09:11:44 +0000 (01:11 -0800)
commitd3f8ef1169afb08976b4b1dafe7bc740f655d886
tree530f77d0b9e5f87683c6ed9b5ef29086411a47c3
parent74e238eada573540f82530f8ae4f3343c023d774
igb: Fix for improper exit in igb_get_i2c_client

This patch fixes an issue where we check for irq's disabled then exit after
explicitly disabling them with spin_lock_irqsave.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com>
Tested-by: Aaron Brown <arron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c