]> git.baikalelectronics.ru Git - kernel.git/commit
[media] pvrusb2: correctly handling failed thread run
authorInsu Yun <wuninsu@gmail.com>
Thu, 4 Feb 2016 23:09:23 +0000 (21:09 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 19 Feb 2016 10:10:32 +0000 (08:10 -0200)
commit842ba82718ecb17b9547234732c9711acbdb152d
treeba4894f73a4786ae4a8e7bac2672fadc4b3b8013
parentaee904069de6ea1696bd63283abf4557f329dd4c
[media] pvrusb2: correctly handling failed thread run

Since kthread_run returns -ENOMEM if failed,
it needs to be checked whether it is error, not whether it is null.

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/pvrusb2/pvrusb2-context.c