diff options
| author | Mikko Perttunen <mperttunen@nvidia.com> | 2018-06-20 16:03:58 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-08-24 13:09:14 +0200 |
| commit | f2cbde943d9797f49ff484408e1edb4fd9bccaae (patch) | |
| tree | d48c74a871409c721cfcf79ef4881c3ebcf2776a /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | d3f205d2d3cdbd57b67a16b0dcd197bcf19e6111 (diff) | |
drm/tegra: Fix comparison operator for buffer size
[ Upstream commit 5265f0338bc0feec6c0d544dfe005dec1a93cb93 ]
Here we are checking for the buffer length, not an offset for writing
to, so using > is correct. The current code incorrectly rejects a
command buffer ending at the memory buffer's end.
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions
