]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r326898:
authorae <ae@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 24 Dec 2017 02:06:16 +0000 (02:06 +0000)
committerae <ae@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 24 Dec 2017 02:06:16 +0000 (02:06 +0000)
commit91659ecd0ff44e7cbdc5823624c2eb6e4a5ea1b3
tree4be9045a036aee3c7bbd2cfaa48212fa420ebaa8
parentb7f783ce338c22d3d05ea21b2414382dfb9fa578
MFC r326898:
  Fix possible memory leak.

  vxlan_ftable entries are sorted in descending order, due to wrong arguments
  order it is possible to stop search before existing element will be found.
  Then new element will be allocated in vxlan_ftable_update_locked() and can
  be inserted in the list second time or trigger MPASS() assertion with
  enabled INVARIANTS.

  PR: 224371

git-svn-id: svn://svn.freebsd.org/base/stable/10@327142 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/net/if_vxlan.c