diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-11-22 04:51:47 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-31 09:58:12 -0700 |
commit | 601cfbf0c6702f2fdc33f0dedf9632961318f8ff (patch) | |
tree | e86f38ecb325022800111d91001bb53b6a212d6f /include | |
parent | 5c256d215753d9b26eb1a8553032630d0270a377 (diff) | |
download | linux-3.10-601cfbf0c6702f2fdc33f0dedf9632961318f8ff.tar.gz linux-3.10-601cfbf0c6702f2fdc33f0dedf9632961318f8ff.tar.bz2 linux-3.10-601cfbf0c6702f2fdc33f0dedf9632961318f8ff.zip |
media: cx18: check for allocation failure in cx18_read_eeprom()
commit e351bf25fa373a3de0be2141b962c5c3c27006a2 upstream.
It upsets static checkers when we don't check for allocation failure. I
moved the memset() of "tv" earlier so we don't use uninitialized data on
error.
Fixes: 1d212cf0c2d8 ('[media] cx18: struct i2c_client is too big for stack')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions