commit | 9e845abfc8a8973373821aa05302794fd254514b | [log] [tgz] |
---|---|---|
author | André Goddard Rosa <andre.goddard@gmail.com> | Sun Oct 25 11:16:32 2009 -0200 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Fri Dec 11 15:18:04 2009 -0800 |
tree | 0dbd44e16a4fbe9554d25b4dcbc17fea7207a933 | |
parent | 2a0785ea375fe93cd480599bb40d0c837ff72a2e [diff] |
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>