diff options
author | 2012-05-15 11:47:47 +0300 | |
---|---|---|
committer | 2012-05-15 08:48:45 -0700 | |
commit | bdb595b4a906b8124d0dc5ff852f84302e2e7955 (patch) | |
tree | a4fc2dd1b5b52690b030845a05525cec0d267cc5 /tools/perf/scripts/python/sctop.py | |
parent | tty: Fix LED error return (diff) | |
download | linux-dev-bdb595b4a906b8124d0dc5ff852f84302e2e7955.tar.xz linux-dev-bdb595b4a906b8124d0dc5ff852f84302e2e7955.zip |
tty: hvc_xen: NULL dereference on allocation failure
If kzalloc() returns a NULL here, we pass a NULL to
xencons_disconnect_backend() which will cause an Oops.
Also I removed the __GFP_ZERO while I was at it since kzalloc() implies
__GFP_ZERO.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions