[Bug 209428] if_vtnet(4) panics when doing kldunload if_vtnet

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat May 14 06:08:01 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209428

--- Comment #16 from commit-hook at freebsd.org ---
A commit references this bug:

Author: kp
Date: Sat May 14 06:07:15 UTC 2016
New revision: 299725
URL: https://svnweb.freebsd.org/changeset/base/299725

Log:
  vtnet: fix panic on unload

  Since r276367 added the virtio_mmio support vtnet_modevent() gets called
twice.
  This resulted in a memory leak during load and a panic on unload.

  Count the loads so we only initialise once (just like cxgbe(4)), and only
clean
  up in the final unload.

  PR:           209428
  Submitted by: novel at FreeBSD.org
  MFC after:    1 week

Changes:
  head/sys/dev/virtio/network/if_vtnet.c

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-virtualization mailing list