commit | 3d92f0b582062127026af1fb5e86eda4a3b01783 | [log] [tgz] |
---|---|---|
author | Maxime Chevallier <maxime.chevallier@bootlin.com> | Thu Apr 05 11:55:48 2018 +0200 |
committer | David S. Miller <davem@davemloft.net> | Thu Apr 05 22:13:16 2018 -0400 |
tree | 3dfcc4c52006b72dd7e1b57b04ba7d33050cc5d5 | |
parent | 58b35f27689b5eb514fc293c332966c226b1b6e4 [diff] |
net: mvpp2: Fix parser entry init boundary check Boundary check in mvpp2_prs_init_from_hw must be done according to the passed "tid" parameter, not the mvpp2_prs_entry index, which is not yet initialized at the time of the check. Fixes: 47e0e14eb1a6 ("net: mvpp2: Make mvpp2_prs_hw_read a parser entry init function") Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com> Signed-off-by: David S. Miller <davem@davemloft.net>