atl1c: Check return from pci_find_ext_capability() in atl1c_reset_pcie()
authorBetty Dall <betty.dall@hp.com>
Thu, 19 Dec 2013 17:59:09 +0000 (10:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Dec 2013 00:14:42 +0000 (19:14 -0500)
commita4f63634760acfcc349a5582c77ca4a004c813f6
tree9cb194f78fb8f784cc3ad6c664da62436b525c65
parent24f5b855e17df7e355eacd6c4a12cc4d6a6c9ff0
atl1c: Check return from pci_find_ext_capability() in atl1c_reset_pcie()

The function atl1c_reset_pcie() does not check the return from
pci_find_ext_cabability() where it is getting the postion of the
PCI_EXT_CAP_ID_ERR. It is possible for the return to be 0.

Signed-off-by: Betty Dall <betty.dall@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/atl1c/atl1c_main.c