diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2016-04-06 13:25:39 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-04-30 18:26:55 +0200 |
commit | 76bbdcb35ebb0e9c5315c4b249cd883cca9e065d (patch) | |
tree | 6d9210f89bb437f0cbb7400f4972731451c06f7e /drivers/tty/mxser.c | |
parent | serial: 8250: Remove unused define (diff) | |
download | linux-76bbdcb35ebb0e9c5315c4b249cd883cca9e065d.tar.xz linux-76bbdcb35ebb0e9c5315c4b249cd883cca9e065d.zip |
tty: ipwireless: fix possible NULL dereference
The function alloc_ctrl_packet() can fail and return NULL. Incase it
fails print an error message and exit.
Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Reviewed-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/mxser.c')
0 files changed, 0 insertions, 0 deletions