André Goddard Rosa 9e845abfc8 serial: fix NULL pointer dereference
If kzalloc() or alloc_tty_driver() fails, we call:
    put_tty_driver(normal = NULL).

Then:
    put_tty_driver -> tty_driver_kref_put -> kref_put(&NULL->kref, ...)

Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-12-11 15:18:04 -08:00
..
2009-12-11 15:18:04 -08:00
2009-12-01 16:32:19 -08:00
2009-12-02 01:13:11 -08:00
2009-11-27 21:07:23 +01:00
2009-11-12 07:26:01 -08:00
2009-12-11 15:18:04 -08:00