summaryrefslogtreecommitdiff
path: root/crypto/krng.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-05-15 08:47:47 (GMT)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2012-05-21 15:03:29 (GMT)
commit201a52bea928687b7557728b176ac4f8a37d5cbd (patch)
treeff5f609f12d6cc69e5ffec1ca971bbcb36694776 /crypto/krng.c
parentd79d5959a023fd637e90ed1ff6547ff09d19396b (diff)
downloadlinux-fsl-qoriq-201a52bea928687b7557728b176ac4f8a37d5cbd.tar.xz
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 'crypto/krng.c')
0 files changed, 0 insertions, 0 deletions