]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: initialize all resources
authorAlex Elder <elder@linaro.org>
Mon, 15 Feb 2021 21:54:34 +0000 (15:54 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Feb 2021 23:26:29 +0000 (15:26 -0800)
commite620c65dc1839a24eaee4e24b58b2decff5d1acc
treefb079d2495e65e0fa984fd30616a93f085e8d132
parent21adf70d8294220e84ec7b423ff9331c5ac02053
net: ipa: initialize all resources

We configure the minimum and maximum number of various types of IPA
resources in ipa_resource_config().  It iterates over resource types
in the configuration data and assigns resource limits to each
resource group for each type.

Unfortunately, we are repeatedly initializing the resource data for
the first type, rather than initializing each of the types whose
limits are specified.

Fix this bug.

Fixes: 79f2d308c315c ("net: ipa: avoid going past end of resource group array")
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/ipa_main.c