aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorMing Lei <[email protected]>2009-04-17 20:50:30 -0300
committerMauro Carvalho Chehab <[email protected]>2009-05-09 18:50:40 -0300
commitcb1287a82281ab3ddb0768250a46603977075b91 (patch)
tree73d647ccfa6c29b5bc95f1574a80e6c3ba22a29c /net/lapb/lapb_subr.c
parent091bf7624d1c90cec9e578a18529f615213ff847 (diff)
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 <[email protected]> Acked-by: Laurent Pinchart <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions