svn commit: r191710 - head/sys/dev/usb/wlan

Andrew Thompson thompsa at FreeBSD.org
Thu Apr 30 22:30:02 UTC 2009


Author: thompsa
Date: Thu Apr 30 22:30:01 2009
New Revision: 191710
URL: http://svn.freebsd.org/changeset/base/191710

Log:
  We need to ref the bss node when sending the beacon since it goes through the
  normal tx path and will be decremented on the mbuf free.

Modified:
  head/sys/dev/usb/wlan/if_ural.c

Modified: head/sys/dev/usb/wlan/if_ural.c
==============================================================================
--- head/sys/dev/usb/wlan/if_ural.c	Thu Apr 30 22:16:29 2009	(r191709)
+++ head/sys/dev/usb/wlan/if_ural.c	Thu Apr 30 22:30:01 2009	(r191710)
@@ -760,7 +760,7 @@ ural_task(struct usb2_proc_msg *pm)
 				    "could not allocate beacon\n");
 				return;
 			}
-
+			ieee80211_ref_node(ni);
 			if (ural_tx_bcn(sc, m, ni) != 0) {
 				device_printf(sc->sc_dev,
 				    "could not send beacon\n");


More information about the svn-src-head mailing list