]> git.baikalelectronics.ru Git - kernel.git/commit
qlcnic: Fix NULL dereference in error path.
authorRajesh Borundia <rajesh.borundia@qlogic.com>
Tue, 2 Apr 2013 05:34:41 +0000 (05:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Apr 2013 18:27:11 +0000 (14:27 -0400)
commitee015b8f891c94d0cb39601fd5b9c632c71bbbdd
tree7a0b3c9d14bfc01b1d44a43c061f925b6646d92f
parent35b37fea4b210f322cb357895469facc55389156
qlcnic: Fix NULL dereference in error path.

o Fix for smatch tool reported error
   drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c:2029
   qlcnic_probe() error: potential NULL dereference 'adapter'.
o While returning from an error path in probe, adapter is not
  initialized. So do not access adapter in cleanup path.

Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c