mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 07:01:57 +00:00
[PATCH] i4l/isdn_tty.c: fix a check-after-use
Fix a check-after-use spotted by the Coverity checker. Signed-off-by: Adrian Bunk <bunk@stusta.de> Cc: Karsten Keil <kkeil@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
daff89f324
commit
1f4d4a80fb
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user