original_kernel/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
altera-ci.c
altera-ci.h
cimax2.c [media] cimax2: Don't use dynamic static allocation 2013-11-08 09:45:42 -02:00
cimax2.h
cx23885-417.c
cx23885-alsa.c
cx23885-av.c
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
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
cx23885-ioctl.c
cx23885-ioctl.h
cx23885-ir.c
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
cx23885.h [media] cx23885: Add Leadtek Winfast PxPVR2200 2013-10-14 07:19:59 -03:00
cx23888-ir.c
cx23888-ir.h
netup-eeprom.c
netup-eeprom.h
netup-init.c
netup-init.h