linux/drivers/media/pci/cx23885
Mauro Carvalho Chehab 278ba83a3a [media] cimax2: 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/pci/cx23885/cimax2.c:149:1: warning: 'netup_write_i2c' uses dynamic stack allocation [enabled by default]
Instead, let's enforce a limit for the buffer. Considering that I2C
transfers are generally limited, and that devices used on USB has a
max data length of 64 bytes for the control URBs.
So, it seem safe to use 64 bytes as the hard limit for all those devices.
On most cases, the limit is a way lower than that, but this limit
is small enough to not affect the Kernel stack, and it is a no brain
limit, as using smaller ones would require to either carefully each
driver or to take a look on each datasheet.

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:42 -02:00
..
Kconfig [media] cx23885: add support for cx24117 with tbs6980 or tbs6981 2013-10-03 07:39:22 -03:00
Makefile [media] btcx-risc: move from media/i2c to media/common 2013-02-08 16:11:25 -02:00
altera-ci.c [media] cx23885: get rid of warning: no previous prototype 2012-10-27 17:58:25 -02:00
altera-ci.h [media] cx23885: use IS_ENABLED 2013-03-23 09:29:10 -03:00
cimax2.c [media] cimax2: Don't use dynamic static allocation 2013-11-08 09:45:42 -02:00
cimax2.h
cx23885-417.c [media] cx23885-417: use v4l2_dev instead of the deprecated parent field 2013-06-21 11:02:44 -03:00
cx23885-alsa.c [media] cx23885-alsa: fix a false gcc warning at dprintk() 2012-10-27 18:01:49 -02:00
cx23885-av.c [media] cx23885[v4]: Fix interrupt storm when enabling IR receiver 2013-08-01 14:55:24 -03:00
cx23885-av.h
cx23885-cards.c [media] cx23885: Add Leadtek Winfast PxPVR2200 2013-10-14 07:19:59 -03:00
cx23885-core.c [media] misc drivers: remove deprecated IRQF_DISABLED 2013-10-17 06:08:31 -03:00
cx23885-dvb.c [media] cx24117: use hybrid_tuner_request/release_state to share state between multiple instances 2013-10-03 07:40:12 -03:00
cx23885-f300.c [media] cx23885: get rid of warning: no previous prototype 2012-10-27 17:58:25 -02:00
cx23885-f300.h
cx23885-i2c.c
cx23885-input.c [media] cx23885: add support for cx24117 with tbs6980 or tbs6981 2013-10-03 07:39:22 -03:00
cx23885-input.h [media] cx23885: get rid of warning: no previous prototype 2012-10-27 17:58:25 -02:00
cx23885-ioctl.c [media] cx23885: remove g_chip_ident 2013-06-17 08:43:46 -03:00
cx23885-ioctl.h [media] cx23885: remove g_chip_ident 2013-06-17 08:43:46 -03:00
cx23885-ir.c [media] cx23885: get rid of warning: no previous prototype 2012-10-27 17:58:25 -02:00
cx23885-ir.h
cx23885-reg.h
cx23885-vbi.c
cx23885-video.c [media] cx23885: Add Leadtek Winfast PxPVR2200 2013-10-14 07:19:59 -03:00
cx23885-video.h [media] cx23885[v4]: Fix interrupt storm when enabling IR receiver 2013-08-01 14:55:24 -03:00
cx23885.h [media] cx23885: Add Leadtek Winfast PxPVR2200 2013-10-14 07:19:59 -03:00
cx23888-ir.c [media] cx23885: remove g_chip_ident 2013-06-17 08:43:46 -03:00
cx23888-ir.h
netup-eeprom.c
netup-eeprom.h
netup-init.c [media] cx23885: get rid of warning: no previous prototype 2012-10-27 17:58:25 -02:00
netup-init.h