mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 03:05:21 +07:00
e33bbe6914
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:
|
||
---|---|---|
.. | ||
core.c | ||
Kconfig | ||
Makefile | ||
messaging.c | ||
qcom-ctrl.c | ||
sched.c | ||
slimbus.h |