tty_io: check return code of tty_register_device
authorVasiliy Kulikov <segooon@gmail.com>
Sun, 5 Sep 2010 18:32:22 +0000 (22:32 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:20:03 +0000 (10:20 -0700)
commitb670bde0b2497966d76154cfb9706c38cf8348f9
tree0e85f57a2f6b806ec7a79addfc00a23a8d3c9b3c
parentdf480518a688f0d28f7e7de69abe6a441d1c2c64
tty_io: check return code of tty_register_device

Function tty_register_device may return ERR_PTR(...). Check for it.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/tty_io.c