diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-05-15 11:47:47 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-01 15:18:25 +0800 |
commit | 284e7be895509cdaf9f58e2f789c00b5e9da2244 (patch) | |
tree | ce07904bf2adce771798c3408c29d02ccdffc2f2 /drivers/xen | |
parent | 4e799d5e79f04b8099c1bd2ff9dc047d3fefd2c1 (diff) |
hvc_xen: NULL dereference on allocation failure
commit 201a52bea928687b7557728b176ac4f8a37d5cbd upstream.
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.
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/xen')
0 files changed, 0 insertions, 0 deletions