Re: [PATCH net-next] net: mvpp2: cls: Check RSS table index validity when creating a context

From: David Miller
Date: Tue May 28 2019 - 14:23:44 EST

From: Maxime Chevallier <maxime.chevallier@xxxxxxxxxxx>
Date: Mon, 27 May 2019 13:52:01 +0200

> Make sure we don't use an out-of-bound index for the per-port RSS
> context array.
> As of today, the global context creation in mvpp22_rss_context_create
> will prevent us from reaching this case, but we should still make sure
> we are using a sane value anyway.
> Reported-by: kbuild test robot <lkp@xxxxxxxxx>
> Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> Signed-off-by: Maxime Chevallier <maxime.chevallier@xxxxxxxxxxx>