From e735c8e20b9c727fd60f9ae1fa86114594c6ec76 Mon Sep 17 00:00:00 2001 From: Aaron Conole Date: Tue, 26 Sep 2017 14:53:27 -0400 Subject: [PATCH] net/enic: fix assignment As it stands, the existing assignment to mbuf has no effect outside of the function. Prior to this change, the mbuf argument would contain an invalid address, but it would not be null. After this change, the caller gets a null mbuf back. Fixes: 947d860c821f ("enic: improve Rx performance") Cc: stable@dpdk.org Signed-off-by: Aaron Conole Reviewed-by: John Daley --- drivers/net/enic/enic_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c index 9b0439b969..cac8b66cf4 100644 --- a/drivers/net/enic/enic_main.c +++ b/drivers/net/enic/enic_main.c @@ -224,7 +224,7 @@ enic_free_rq_buf(struct rte_mbuf **mbuf) return; rte_pktmbuf_free(*mbuf); - mbuf = NULL; + *mbuf = NULL; } void enic_init_vnic_resources(struct enic *enic) -- 2.20.1