diff options
author | Dan Carpenter <[email protected]> | 2012-05-15 11:47:47 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2012-05-15 08:48:45 -0700 |
commit | bdb595b4a906b8124d0dc5ff852f84302e2e7955 (patch) | |
tree | a4fc2dd1b5b52690b030845a05525cec0d267cc5 /lib/mpi/mpi-add.c | |
parent | 05f843b5d3406c29c8af7d1eb39ea9143b21d6dc (diff) |
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 <[email protected]>
Acked-by: Stefano Stabellini <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions