]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r305877:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 23 Sep 2016 08:35:56 +0000 (08:35 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 23 Sep 2016 08:35:56 +0000 (08:35 +0000)
commit12769291ed3c13c95fe1fedde5c8dfd017aa31ca
tree29c7d9679525706280f95d3310c0f2063e6c84f2
parent7aeae451e6c5df5098bc9f00aec6752e943a326f
MFC r305877:
mlx5en: Fix duplicate mbuf free-by-code.

When mlx5e_sq_xmit() returns an error code and the mbuf pointer is set,
we should not free the mbuf, because the caller will keep the mbuf in
the drbr. Make sure the mbuf pointer is correctly set upon function
exit.

Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/10@306254 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/mlx5/mlx5_en/mlx5_en_tx.c