summaryrefslogtreecommitdiff
path: root/drivers/platform
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2021-03-20 17:17:28 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-10 14:36:08 +0300
commit6304295c6190c717685d7d439234517c67514dfb (patch)
tree464d603d23c0a20d1c18713c8cf1a3e37a41a33f /drivers/platform
parent8a57256e0548fee9b9918c5a7bffc8770dcc5afa (diff)
downloadlinux-6304295c6190c717685d7d439234517c67514dfb.tar.xz
net: ipa: fix init header command validation
[ Upstream commit b4afd4b90a7cfe54c7cd9db49e3c36d552325eac ] We use ipa_cmd_header_valid() to ensure certain values we will program into hardware are within range, well in advance of when we actually program them. This way we avoid having to check for errors when we actually program the hardware. Unfortunately the dev_err() call for a bad offset value does not supply the arguments to match the format specifiers properly. Fix this. There was also supposed to be a check to ensure the size to be programmed fits in the field that holds it. Add this missing check. Rearrange the way we ensure the header table fits in overall IPA memory range. Finally, update ipa_cmd_table_valid() so the format of messages printed for errors matches what's done in ipa_cmd_header_valid(). Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/platform')
0 files changed, 0 insertions, 0 deletions