]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
hardware/mISDN/mISDNinfineon.c: bail out of loop on error
authorDarren Jenkins <darrenrjenkins@gmail.com>
Tue, 2 Feb 2010 12:43:45 +0000 (12:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Feb 2010 04:16:47 +0000 (20:16 -0800)
commitf0f4d641d4ebfeb4194e9c26dfa6286802e2e8d1
tree60906119f455a6d85b49e45a4f9bd1f46e377f34
parente23e11792a77c7d54f363841cd5e33074fb0c8c9
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 <darrenrjenkins@gmail.com>
Cc: Karsten Keil <isdn@linux-pingi.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/hardware/mISDN/mISDNinfineon.c