1
0
Fork 0
alistair23-linux/drivers/media
Mauro Carvalho Chehab 24e9a47e14 [media] v4l2-async: Don't use dynamic static allocation
Dynamic static allocation is evil, as Kernel stack is too low, and
compilation complains about it on some archs:
	drivers/media/v4l2-core/v4l2-async.c:238:1: warning: 'v4l2_async_notifier_unregister' uses dynamic stack allocation [enabled by default]
Instead, let's enforce a limit for the buffer.
In this specific case, there's a hard limit imposed by V4L2_MAX_SUBDEVS,
with is currently 128. That means that the buffer size can be up to
128x8 = 1024 bytes (on a 64bits kernel), with is too big for stack.
Worse than that, someone could increase it and cause real troubles.
So, let's use dynamically allocated data, instead.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2013-11-08 09:45:43 -02:00
..
common [media] saa7146: remove deprecated IRQF_DISABLED 2013-10-17 06:07:50 -03:00
dvb-core [media] media: dvb-core: prepare for enabling irq in complete() 2013-10-02 06:48:13 -03:00
dvb-frontends [media] stv090x: Don't use dynamic static allocation 2013-11-08 09:45:40 -02:00
firewire firewire: introduce fw_driver.probe and .remove methods 2013-06-09 18:15:00 +02:00
i2c [media] tvp7002: Include linux/of.h header 2013-10-31 08:18:54 -02:00
mmc [media] siano: get rid of CammelCase from smscoreapi.h 2013-03-21 10:03:16 -03:00
parport [media] bw-qcam: fix timestamp handling 2013-05-27 09:30:19 -03:00
pci [media] cimax2: Don't use dynamic static allocation 2013-11-08 09:45:42 -02:00
platform [media] sh_mobile_ceu_camera: remove deprecated IRQF_DISABLED 2013-10-31 04:39:52 -02:00
radio [media] radio-si470x-i2c: fix a warning on ia64 2013-11-08 09:45:36 -02:00
rc [media] rc: Fir warnings on m68k arch 2013-11-08 09:45:37 -02:00
tuners [media] tuner-xc2028: Don't use dynamic static allocation 2013-11-08 09:45:42 -02:00
usb [media] uvc/lirc_serial: Fix some warnings on parisc arch 2013-11-08 09:45:37 -02:00
v4l2-core [media] v4l2-async: Don't use dynamic static allocation 2013-11-08 09:45:43 -02:00
Kconfig [media] Fix build when drivers are builtin and frontend modules 2013-06-20 10:35:53 -03:00
Makefile [media] move i2c files into drivers/media/i2c 2012-09-06 18:42:54 -03:00
media-device.c [media] media: info leak in __media_device_enum_links() 2013-06-12 18:52:45 -03:00
media-devnode.c [media] media: Add 64--32 bit compat ioctl handler 2013-03-18 20:44:36 -03:00
media-entity.c [media] media: Add support for circular graph traversal 2013-08-18 07:16:48 -03:00