: hardware/mISDN/mISDNinfineon.c: Bail out of loop on error
PATCH 1/1 : hardware/mISDN/mISDNinfineon.c: Bail out of loop on error
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]>
isdn/hardware/mISDN/mISDNinfineon.c +1 -0
@@ -1133,6 +1133,7 @@ inf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)if (err) {kfree (sc);release_card (card); +break ; }else card->sc[i -1 ] = sc; }