diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-05-15 11:47:47 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-15 08:48:45 -0700 |
commit | bdb595b4a906b8124d0dc5ff852f84302e2e7955 (patch) | |
tree | a4fc2dd1b5b52690b030845a05525cec0d267cc5 /security | |
parent | 05f843b5d3406c29c8af7d1eb39ea9143b21d6dc (diff) | |
download | linux-3.10-bdb595b4a906b8124d0dc5ff852f84302e2e7955.tar.gz linux-3.10-bdb595b4a906b8124d0dc5ff852f84302e2e7955.tar.bz2 linux-3.10-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 'security')
0 files changed, 0 insertions, 0 deletions