Searched hist:"1 d212cf0c2d89adf3d0a6d62d729076f49f087dc" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/media/pci/cx18/ |
H A D | cx18-driver.c | diff 1d212cf0c2d89adf3d0a6d62d729076f49f087dc Fri Nov 01 11:09:47 CDT 2013 Mauro Carvalho Chehab <m.chehab@samsung.com> [media] cx18: struct i2c_client is too big for stack
drivers/media/pci/cx18/cx18-driver.c: In function 'cx18_read_eeprom': drivers/media/pci/cx18/cx18-driver.c:357:1: warning: the frame size of 1072 bytes is larger than 1024 bytes [-Wframe-larger-than=] That happens because the routine allocates 256 bytes for an eeprom buffer, plus the size of struct i2c_client, with is big. Change the logic to dynamically allocate/deallocate space for struct i2c_client, instead of using the stack.
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>
|