Re: [PATCH net] net: mvpp2: Fix parser entry init boundary check

2018-04-05 Thread David Miller
From: Maxime Chevallier Date: Thu, 5 Apr 2018 11:55:48 +0200 > 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 mvpp

[PATCH net] net: mvpp2: Fix parser entry init boundary check

2018-04-05 Thread Maxime Chevallier
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 Cheval