[media] pvrusb2: check kmalloc return value
authorXiaochen Wang <wangxiaochen0@gmail.com>
Mon, 14 Mar 2011 01:32:53 +0000 (22:32 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Mar 2011 07:54:37 +0000 (04:54 -0300)
commitc05df8b32ab4b8103f8c20cbd3ab7191be613b68
tree3af2f634bd44ff82c1dda294e125edb2f3ac079a
parent228ee5928b5d4192a23cda3fdf755a956516c13e
[media] pvrusb2: check kmalloc return value

 allows the driver to proceed and initialize the below two values
 even if the kmalloc() fails.
        hdw->std_info_enum.def.type_enum.value_names
        hdw->std_info_enum.def.type_enum.count

Signed-off-by: Xiaochen Wang <wangxiaochen0@gmail.com>
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/pvrusb2/pvrusb2-hdw.c