]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[media] pvrusb2: check for allocation failures
authorDan Carpenter <error27@gmail.com>
Sat, 26 Mar 2011 01:52:22 +0000 (22:52 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 20 May 2011 12:28:24 +0000 (09:28 -0300)
commit0cff593732fa5bdf07192be741a567b85a9c0cd3
tree8a02817ba8409f815a69a1a02f7cbd840a351a43
parentce02704d48767bdd31eb0b804b1d45da5b683a8c
[media] pvrusb2: check for allocation failures

This function returns NULL on failure so lets do that if kzalloc()
fails.  There is a separate problem that the caller for this function
doesn't check for errors...

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-By: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/pvrusb2/pvrusb2-std.c