diff options
| author | Stefan Weil | 2012-09-03 22:56:00 +0200 |
|---|---|---|
| committer | Aurelien Jarno | 2012-09-10 14:59:47 +0200 |
| commit | 149eeb5fe57b853081e8059575d91b8a58a4f96c (patch) | |
| tree | ce443559037991163bcea615d80639f331cfee30 /scripts | |
| parent | tcg/s390: fix ld/st with CONFIG_TCG_PASS_AREG0 (diff) | |
| download | qemu-149eeb5fe57b853081e8059575d91b8a58a4f96c.tar.gz qemu-149eeb5fe57b853081e8059575d91b8a58a4f96c.tar.xz qemu-149eeb5fe57b853081e8059575d91b8a58a4f96c.zip | |
hw/wm8750: Fix potential buffer overflow
Report from smatch:
hw/wm8750.c:369 wm8750_tx(12) error: buffer overflow 's->i2c_data' 2 <= 2
It looks like the preprocessor statements were simply misplaced.
Replace also __FUNCTION__ by __func__ to please checkpatch.pl.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
