OSDN Git Service

[media] videobuf_pages_to_sg: sglist[0] length problem
authorNewson Edouard <newsondev@gmail.com>
Tue, 19 Apr 2011 14:54:54 +0000 (11:54 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 27 Jul 2011 20:52:19 +0000 (17:52 -0300)
commit45f239ab82b2a808103a0fae02594961b09c5c8b
treea42b4115f12ced98c6c4a6a5a7b990e3c1d8ff37
parent4bbcd849b07259211dfe6d3168e669e89bbd19ea
[media] videobuf_pages_to_sg: sglist[0] length problem

On function videobuf_pages_to_sg the statement sg_set_page(&sglist[0],
pages[0], PAGE_SIZE - offset, offset) will fail if size is less than
PAGE_SIZE.

Signed-off-by: Newson Edouard <newsondev@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/videobuf-dma-sg.c