]> git.baikalelectronics.ru Git - kernel.git/commit
[media] gspca - kinect: move communications buffers out of stack
authorDrew Fisher <drew.m.fisher@gmail.com>
Thu, 21 Apr 2011 09:51:34 +0000 (06:51 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 20 May 2011 12:30:57 +0000 (09:30 -0300)
commit26a7cc1a01a075c696a8493e76b99fd3f5213bc6
tree32ca54eb02750521ce59ceb99d3443bf0b46f378
parentbc4d6e5a3af03765071f319c73e093b96e4ce640
[media] gspca - kinect: move communications buffers out of stack

Move large communications buffers out of stack and into device
structure. This prevents the frame size from being >1kB and fixes a
compiler warning when CONFIG_FRAME_WARN=1024:

drivers/media/video/gspca/kinect.c: In function ‘send_cmd.clone.0’:
drivers/media/video/gspca/kinect.c:202: warning: the frame size of 1548 bytes is larger than 1024 bytes

Reported-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Drew Fisher <drew.m.fisher@gmail.com>
Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/kinect.c