commit | a749c6c03762f71ba4d04ead60b4f5df9ca2bf5e | [log] [tgz] |
---|---|---|
author | Alex Elder <elder@linaro.org> | Fri Mar 26 10:11:12 2021 -0500 |
committer | David S. Miller <davem@davemloft.net> | Fri Mar 26 15:02:38 2021 -0700 |
tree | b7a61eaa8156241e4cacffabc79fb19a4039ed82 | |
parent | ee3e6beaa015ff1526440bf31f1782b6daa772da [diff] |
net: ipa: fix bug in resource group limit programming If the number of resource groups supported by the hardware is less than a certain number, we return early in ipa_resource_config_src() and ipa_resource_config_dst() (to avoid programming resource limits for non-existent groups). Unfortunately, these checks are off by one. Fix this problem in the four places it occurs. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>