]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: fix error return code in i40e_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 24 Sep 2013 05:17:25 +0000 (05:17 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 29 Oct 2013 11:29:25 +0000 (04:29 -0700)
commit34df3aecc246a095e4f14aa7ccc58457ba6d0cef
tree0c912e1aeb63b9c291d636b93bfea607de1962b0
parent3ab8d6981c104e7a9383b464e58de948a3f05217
i40e: fix error return code in i40e_probe()

Fix to return -ENOMEM in the memory alloc error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c