diff options
author | John Sperbeck <[email protected]> | 2019-02-12 19:40:57 -0800 |
---|---|---|
committer | Wolfram Sang <[email protected]> | 2019-02-14 18:01:33 +0100 |
commit | d8434c31378d5f2009741fa171bd1143c77a6e4a (patch) | |
tree | be2b7be01c75f99e907407e3c31cf9c6f00ea743 /lib/test_overflow.c | |
parent | 237b5f66e1ed8a58662f29bcd04442953cdb8b55 (diff) |
i2c: core-smbus: don't trace smbus_reply data on errors
If an smbus transfer fails, there's no guarantee that the output
buffer was written. So, avoid trying to show the output buffer when
tracing after an error. This was 'mostly harmless', but would trip
up kasan checking if left-over cruft in byte 0 is a large length,
causing us to read from unwritten memory.
Signed-off-by: John Sperbeck <[email protected]>
Reviewed-by: Steven Rostedt (VMware) <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions