diff options
author | André Goddard Rosa <andre.goddard@gmail.com> | 2009-10-25 11:16:32 -0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-11 15:18:04 -0800 |
commit | 9e845abfc8a8973373821aa05302794fd254514b (patch) | |
tree | 0dbd44e16a4fbe9554d25b4dcbc17fea7207a933 /kernel | |
parent | 2a0785ea375fe93cd480599bb40d0c837ff72a2e (diff) | |
download | kernel_samsung_smdk4412-9e845abfc8a8973373821aa05302794fd254514b.zip kernel_samsung_smdk4412-9e845abfc8a8973373821aa05302794fd254514b.tar.gz kernel_samsung_smdk4412-9e845abfc8a8973373821aa05302794fd254514b.tar.bz2 |
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>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions