diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2019-03-12 13:44:42 +0100 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2019-03-13 18:03:26 +0100 |
commit | bf263c35b2ebe7f1674205f6b36487250299b5a7 (patch) | |
tree | d281179a1dfafd96a655cd4234e1238179973113 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | c86da50cfd840edf223a242580913692acddbcf6 (diff) |
i2c: add extra check to safe DMA buffer helper
Make sure we report 'no buffer' for 0-length messages. This can only
happen if threshold is set to 0 which is kind of bogus but we should
still handle this situation. Update the docs and add a debug message
to educate callers of this function.
Reported-by: Hsin-Yi Wang <hsinyi@chromium.org>
Fixes: e94bc5d18be0 ("i2c: add helpers to ease DMA handling")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Hsin-Yi Wang <hsinyi@chromium.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions