diff options
author | Bartosz Golaszewski <bartekgola@gmail.com> | 2015-10-27 17:15:04 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-11-01 20:55:09 +0100 |
commit | 74bb9d5e63b0928ceac57fedd4a2d383129ade7d (patch) | |
tree | df843f9e83ff4986287cc9e885ab59b1506296f7 /modutils/modinfo.c | |
parent | 1fe75b8ef10933d047f7ab6060d4710a39611e92 (diff) | |
download | busybox-74bb9d5e63b0928ceac57fedd4a2d383129ade7d.tar.gz |
i2cdump: bail-out if block read fails
We should bail-out if i2c_smbus_read_block_data() or
i2c_smbus_read_i2c_block_data() return 0 or less. Add the missing check
for the former and fix the existing for the latter.
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'modutils/modinfo.c')
0 files changed, 0 insertions, 0 deletions