diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-11-01 13:09:47 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-11-07 15:04:00 -0200 |
commit | 1d212cf0c2d89adf3d0a6d62d729076f49f087dc (patch) | |
tree | d324859ec7a1269c995f7e6945a8cda129b7c6be /drivers/media/radio | |
parent | 51d8e7fbffe34dc1c75ad28b49d0bcd210792424 (diff) | |
download | blackbird-op-linux-1d212cf0c2d89adf3d0a6d62d729076f49f087dc.tar.gz blackbird-op-linux-1d212cf0c2d89adf3d0a6d62d729076f49f087dc.zip |
[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>
Diffstat (limited to 'drivers/media/radio')
0 files changed, 0 insertions, 0 deletions