From: Aaron Conole Date: Tue, 26 Sep 2017 18:53:27 +0000 (-0400) Subject: net/enic: fix assignment X-Git-Tag: spdx-start~1471 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e735c8e20b9c727fd60f9ae1fa86114594c6ec76;p=dpdk.git 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 --- 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)