]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix potential data corruption in iflib
authorStephen Hurd <shurd@FreeBSD.org>
Wed, 29 Aug 2018 15:55:25 +0000 (15:55 +0000)
committerStephen Hurd <shurd@FreeBSD.org>
Wed, 29 Aug 2018 15:55:25 +0000 (15:55 +0000)
commita520f8b6febebde86aef71045a013bfa9fa5c295
treed428509893b5d894e41db259c0a20928e51e3743
parentb83d10091fde9d180ab4ce2e533b712e97e5a2e0
Fix potential data corruption in iflib

The MP ring may have txq pointers enqueued.  Previously, these were
passed to m_free() when IFC_QFLUSH was set.  This patch checks for
the value and doesn't call m_free().

Reviewed by: gallatin
Approved by: re (gjb)
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D16882
sys/net/iflib.c