]> git.baikalelectronics.ru Git - kernel.git/commit
[media] tm6000: check an allocation for failure
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 30 Jan 2013 06:03:43 +0000 (03:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 8 Feb 2013 16:46:56 +0000 (14:46 -0200)
commitff94a45ac2ae082b8cd185212fd8fc46649a10cb
treec055dd6d58c0168a057b6ae09e6a4e9af72806ae
parentcd07a9a36bc50735ad287e2a13d1ac17b7117b83
[media] tm6000: check an allocation for failure

This allocation had no error checking.  It didn't need to be under
the mutex so I moved it out form there. That makes the error handling
easier and is a potential speed up.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/tm6000/tm6000-core.c