[PATCH] net/iavf: fix access to null value
Bruce Richardson
bruce.richardson at intel.com
Fri Feb 2 11:47:03 CET 2024
On Wed, Jan 24, 2024 at 02:05:55AM +0000, Mingjin Ye wrote:
> The "vsi" may be null, so it needs to be used after checking.
>
> Fixes: ab28aad9c24f ("net/iavf: fix Rx Tx burst in multi-process")
> Cc: stable at dpdk.org
>
> Signed-off-by: Mingjin Ye <mingjinx.ye at intel.com>
> ---
> drivers/net/iavf/iavf_rxtx.c | 10 ++++++----
> 1 file changed, 6 insertions(+), 4 deletions(-)
>
This looks safer with the checks this way.
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
More information about the dev
mailing list