diff options
author | Geert Uytterhoeven | 2018-04-08 11:02:34 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2018-04-23 13:40:15 +0200 |
commit | e33bbe69149b802c0c77bfb822685772f85388ca (patch) | |
tree | 2e7435326efad5203215da05726c69c5696498be /drivers/memory | |
parent | MAINTAINERS: add dri-devel&linaro-mm for Android ION (diff) | |
download | kernel-qcow2-linux-e33bbe69149b802c0c77bfb822685772f85388ca.tar.gz kernel-qcow2-linux-e33bbe69149b802c0c77bfb822685772f85388ca.tar.xz kernel-qcow2-linux-e33bbe69149b802c0c77bfb822685772f85388ca.zip |
slimbus: Fix out-of-bounds access in slim_slicesize()
With gcc-4.1.2:
slimbus/messaging.c: In function ‘slim_slicesize’:
slimbus/messaging.c:186: warning: statement with no effect
Indeed, clamp() is a macro not operating in-place, but returning the
clamped value. Hence the value is not clamped at all, which may lead to
an out-of-bounds access.
Fix this by assigning the clamped value.
Fixes: afbdcc7c384b0d44 ("slimbus: Add messaging APIs to slimbus framework")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/memory')
0 files changed, 0 insertions, 0 deletions