• Jiri Slaby's avatar
    NET: irda, remove unnecessary checks · c026ca58
    Jiri Slaby authored
    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: default avatarJiri Slaby <jslaby@suse.cz>
    Cc: Samuel Ortiz <samuel@sortiz.org>
    Cc: "David S. Miller" <davem@davemloft.net>
    Cc: Alan Cox <alan@linux.intel.com>
    Cc: Greg Kroah-Hartman <gregkh@suse.de>
    Cc: netdev@vger.kernel.org
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    c026ca58
ircomm_tty.c 38.3 KB