diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-05-15 10:47:47 +0200 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-05-21 17:03:29 +0200 |
commit | 201a52bea928687b7557728b176ac4f8a37d5cbd (patch) | |
tree | ff5f609f12d6cc69e5ffec1ca971bbcb36694776 /include/xen/events.h | |
parent | xen: Add selfballoning memory reservation tunable. (diff) | |
download | linux-201a52bea928687b7557728b176ac4f8a37d5cbd.tar.xz linux-201a52bea928687b7557728b176ac4f8a37d5cbd.zip |
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.
CC: stable@kernel.org
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>
Diffstat (limited to 'include/xen/events.h')
0 files changed, 0 insertions, 0 deletions