Re: [PATCH net] net: hns3: Fix for out-of-bounds access when setting pfc back pressure

From: David Miller
Date: Sat Nov 03 2018 - 18:42:32 EST


From: Yunsheng Lin <linyunsheng@xxxxxxxxxx>
Date: Thu, 1 Nov 2018 20:12:43 +0800

> The vport should be initialized to hdev->vport for each bp group,
> otherwise it will cause out-of-bounds access and bp setting not
> correct problem.
...
> Fixes: 67bf2541f4b9 ("net: hns3: Fixes the back pressure setting when sriov is enabled")
> Signed-off-by: Yunsheng Lin <linyunsheng@xxxxxxxxxx>

Applied, thanks.