Skip to contentSkip to conversation

: hardware/mISDN/mISDNinfineon.c: Bail out of loop on error

PATCH New Darren Jenkins 1 participant 1 message Jan 8, 2010 Kernel janitors

lore
Share & tools
lore
#0 lore raw

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

isdn/hardware/mISDN/mISDNinfineon.c +1 -0
index 62441ba..36c6c61 100644
@@ -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;
 		}