hardware/mISDN/mISDNinfineon.c: bail out of loop on error
Subsystems (2)
PATCH 2/4 hardware/mISDN/mISDNinfineon.c: bail out of loop on error
From: Darren Jenkins <[email protected]>
If setup_instance() fails we kfree() the card, and then use it in the next loop iteration. So lets bail out of the loop instead.
Coverity CID: 13357
Signed-off-by Darren Jenkins <[email protected]>
Cc Karsten Keil <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/isdn/hardware/mISDN/mISDNinfineon.c | 1 + 1 file changed, 1 insertion(+)
drivers/isdn/hardware/mISDN/mISDNinfineon.c renamed from drivers/isdn/hardware/mISDN/mISDNinfineon.c~hardware-misdn-misdninfineonc-bail-out-of-loop-on-error +1 -0
@@ -1133,6 +1133,7 @@ inf_probe(struct pci_dev *pdev, const stif (err) {kfree (sc);release_card (card); +break ; }else card->sc[i -1 ] = sc; }
_
From: [email protected]
Date: Tue, 02 Feb 2010 14:43:45 -0800
Quoted 10 lines
From: Darren Jenkins <[email protected]>
If
setup_instance()fails wekfree()the card, and then use it in the next loop iteration. So lets bail out of the loop instead.Coverity CID: 13357
Signed-off-by Darren Jenkins <[email protected]>Cc Karsten Keil <[email protected]>Signed-off-by Andrew Morton <[email protected]>
Applied.