]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (11575): uvcvideo: fix uvc resume failed
authorMing Lei <tom.leiming@gmail.com>
Fri, 17 Apr 2009 23:50:30 +0000 (20:50 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 9 May 2009 21:50:40 +0000 (18:50 -0300)
commit6321824bcb66cfa297f915b6ddd1cc2ae18033d5
tree73d647ccfa6c29b5bc95f1574a80e6c3ba22a29c
parent334dcf3687580e3aab1ff315da763471db5f3932
V4L/DVB (11575): uvcvideo: fix uvc resume failed

Now urb buffers is not freed before suspend, so uvc_alloc_urb_buffers should
return packet counts allocated originally during uvc resume, instead of zero.

This version uses round down to return packet counts on Linus' suggestions,
or else may lead to buffer destructed if packet size is changed before
calling uvc_alloc_urb_buffers() in this kind of case.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/uvc/uvc_video.c