Re: [PATCH 1/1] NET: irda, remove unnecessary checks

From: David Miller
Date: Sun Jan 10 2010 - 16:28:14 EST


From: Jiri Slaby <jslaby@xxxxxxx>
Date: Sun, 10 Jan 2010 12:17:34 +0100

> Stanse found a potential null dereference in ircomm_tty_close
> and ircomm_tty_hangup. There is a check for tty being NULL,
> but it is dereferenced earlier. But it is bogus, the tty cannot
> be NULL, so remove the !tty checks.
>
> Signed-off-by: Jiri Slaby <jslaby@xxxxxxx>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/