linux/drivers/media
Mauro Carvalho Chehab ffc0c180ed media: s5h1420: Don't use dynamic static allocation
commit 9736a89daf upstream.

Dynamic static allocation is evil, as Kernel stack is too low, and
compilation complains about it on some archs:
	drivers/media/dvb-frontends/s5h1420.c:851:1: warning: 's5h1420_tuner_i2c_tuner_xfer' uses dynamic stack allocation [enabled by default]
Instead, let's enforce a limit for the buffer.
In the specific case of this frontend, only ttpci uses it. The maximum
number of messages there is two, on I2C read operations. As the logic
can add an extra operation, change the size to 3.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-12-04 10:57:33 -08:00
..
common media: siano: fix divide error on 0 counters 2013-09-26 17:18:27 -07:00
dvb-core media: dmxdev: remove dvb_ringbuffer_flush() on writer side 2013-07-28 16:30:21 -07:00
dvb-frontends media: s5h1420: Don't use dynamic static allocation 2013-12-04 10:57:33 -08:00
firewire [media] demux.h: Remove duplicated enum 2013-04-08 06:53:15 -03:00
i2c [media] s5c73m3: Fix off-by-one valid range checking for fie->index 2013-05-21 08:36:54 -03:00
mmc [media] siano: get rid of CammelCase from smscoreapi.h 2013-03-21 10:03:16 -03:00
parport [media] v4l2: pass std by value to the write-only s_std ioctl 2013-03-24 06:47:00 -03:00
pci media: cx18: struct i2c_client is too big for stack 2013-12-04 10:57:32 -08:00
platform media: sh_vou: almost forever loop in sh_vou_try_fmt_vid_out() 2013-11-20 12:27:48 -08:00
radio Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2013-06-18 06:25:08 -10:00
rc Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2013-05-01 17:51:54 -07:00
tuners media: tuners: Don't use dynamic static allocation 2013-12-04 10:57:32 -08:00
usb media: cxusb: Don't use dynamic static allocation 2013-12-04 10:57:31 -08:00
v4l2-core [media] v4l2-ioctl: don't print the clips list 2013-06-08 21:36:21 -03: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_entities() 2013-04-23 16:58:52 -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 link_validate() op to check links to the sink pad 2012-05-14 08:44:11 -03:00