]> err.no Git - linux-2.6/commit
V4L/DVB (7365): reduce stack usage of v4l1_compat_sync
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Tue, 22 Apr 2008 17:45:57 +0000 (14:45 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:07:50 +0000 (14:07 -0300)
commit76e41e4851e0c8b642e348d8489d7645b8dae21e
tree63479aebf183b45c9e80f892b3c6e32999ed4341
parentb524f7b02d70204444441e4805fb3a71981e9018
V4L/DVB (7365): reduce stack usage of v4l1_compat_sync

poll_one allocated on stack struct poll_wqueues which is pretty big
structure (>500 bytes on x86_64). v4l1_compat_sync invokes poll_one
in a loop, so allocate struct poll_wqueues in v4l1_compat_sync (with
kmalloc) and pass it to poll_one.

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/v4l1-compat.c