Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f4d4a80 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds
Browse files

[PATCH] i4l/isdn_tty.c: fix a check-after-use



Fix a check-after-use spotted by the Coverity checker.

Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Cc: Karsten Keil <kkeil@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent daff89f3
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2345,12 +2345,15 @@ isdn_tty_at_cout(char *msg, modem_info * info)
	u_long flags;
	struct sk_buff *skb = NULL;
	char *sp = NULL;
	int l = strlen(msg);
	int l;

	if (!msg) {
		printk(KERN_WARNING "isdn_tty: Null-Message in isdn_tty_at_cout\n");
		return;
	}

	l = strlen(msg);

	spin_lock_irqsave(&info->readlock, flags);
	tty = info->tty;
	if ((info->flags & ISDN_ASYNC_CLOSING) || (!tty)) {