[media] usbtv: correctly handling failed allocation
authorInsu Yun <wuninsu@gmail.com>
Tue, 29 Dec 2015 21:48:29 +0000 (19:48 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 1 Feb 2016 09:42:00 +0000 (07:42 -0200)
commite22a3b34a1f2ee53f89aef86b15d6f677de6bdc5
treea82d3e1b8b40003ff7a5fd9bfa80156fa33d735a
parentf8433226d1b3eb035693724dca786c4445221368
[media] usbtv: correctly handling failed allocation

Since kzalloc can be failed,
if not properly handled, NULL dereference could be happened.

Signed-off-by: Insu Yun <wuninsu@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/usbtv/usbtv-video.c