diff options
author | Michael Mera <dev@michaelmera.com> | 2017-05-01 09:41:16 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-05-01 22:04:23 +0300 |
commit | 062d0f22a30c39840ea49b72cfcfc1aa4cc538fa (patch) | |
tree | 828b88cd5adbbeac367ec477ec502c294eb05949 /.get_maintainer.ignore | |
parent | b03ee4ca0cec348c84dccf08aaec2454c4d236c2 (diff) | |
download | linux-062d0f22a30c39840ea49b72cfcfc1aa4cc538fa.tar.xz |
IB/ocrdma: fix out of bounds access to local buffer
In write to debugfs file 'resource_stats' the local buffer 'tmp_str' is
written at index 'count-1' where 'count' is the size of the write, so
potentially 0.
This patch filters odd values for the write size/position to avoid this
type of problem.
Signed-off-by: Michael Mera <dev@michaelmera.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to '.get_maintainer.ignore')
0 files changed, 0 insertions, 0 deletions