diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-11-22 11:51:47 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-12-10 21:36:11 +0400 |
commit | e351bf25fa373a3de0be2141b962c5c3c27006a2 (patch) | |
tree | 5d2fd02808c2a0c962afe35363da2e71b13b4d91 /drivers/media/dvb-frontends/dib0070.h | |
parent | eda9dfd6752e58c5c075076654007311da6b5268 (diff) | |
download | linux-e351bf25fa373a3de0be2141b962c5c3c27006a2.tar.xz |
[media] cx18: check for allocation failure in cx18_read_eeprom()
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>
Diffstat (limited to 'drivers/media/dvb-frontends/dib0070.h')
0 files changed, 0 insertions, 0 deletions