aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/irqchip
diff options
context:
space:
mode:
authorMichael Mera <dev@michaelmera.com>2017-05-01 15:41:16 +0900
committerDoug Ledford <dledford@redhat.com>2017-05-01 15:04:23 -0400
commit062d0f22a30c39840ea49b72cfcfc1aa4cc538fa (patch)
tree828b88cd5adbbeac367ec477ec502c294eb05949 /drivers/irqchip
parentIB/mlx4: Fix incorrect order of formal and actual parameters (diff)
downloadlinux-dev-062d0f22a30c39840ea49b72cfcfc1aa4cc538fa.tar.xz
linux-dev-062d0f22a30c39840ea49b72cfcfc1aa4cc538fa.zip
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 'drivers/irqchip')
0 files changed, 0 insertions, 0 deletions