commit | ce2927e9a3b325b92acfeab66632f9a38d572722 | [log] [tgz] |
---|---|---|
author | Giedrius Statkevičius <giedrius.statkevicius@gmail.com> | Fri Apr 10 02:42:30 2015 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri May 08 09:24:00 2015 +0200 |
tree | 7bb540e7a72113dbdd23f491e8afb1a37eedba33 | |
parent | fa52d96c3ea110acb77e51c856ec0b54606cc17e [diff] |
staging: dgnc: don't forget to check if ->channels[i] is NULL in dgnc_tty_uninit() Add a check if ->channels[i] is NULL because a NULL pointer may be dereferenced in case one of the allocations failed Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>