git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05f843b
)
tty: hvc_xen: NULL dereference on allocation failure
author
Dan Carpenter
<dan.carpenter@oracle.com>
Tue, 15 May 2012 08:47:47 +0000
(11:47 +0300)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 15 May 2012 15:48:45 +0000
(08:48 -0700)
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>
No differences found