commit | f1a094a83059b4677038befde6c4da6cfed31dbd | [log] [tgz] |
---|---|---|
author | Rajesh Borundia <rajesh.borundia@qlogic.com> | Tue Apr 02 05:34:41 2013 +0000 |
committer | David S. Miller <davem@davemloft.net> | Tue Apr 02 14:27:11 2013 -0400 |
tree | 7a0b3c9d14bfc01b1d44a43c061f925b6646d92f | |
parent | d8fe3436df256ce48d953dc342ac114e6e368476 [diff] |
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>