Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Oct 2014 03:32:27 +0000 (UTC)
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273448 - head/sys/dev/usb/wlan
Message-ID:  <201410220332.s9M3WRhf078882@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevlo
Date: Wed Oct 22 03:32:27 2014
New Revision: 273448
URL: https://svnweb.freebsd.org/changeset/base/273448

Log:
  Fix the kernel panic in hostap mode.
  rvp->beacon_mbuf was NULL in run_update_beacon().
  
  PR:	189405
  Submitted by:	Gabor Simon <gabor.simon75 at gmail.com>
  MFC after:	3 days

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

Modified: head/sys/dev/usb/wlan/if_run.c
==============================================================================
--- head/sys/dev/usb/wlan/if_run.c	Wed Oct 22 01:53:00 2014	(r273447)
+++ head/sys/dev/usb/wlan/if_run.c	Wed Oct 22 03:32:27 2014	(r273448)
@@ -4913,6 +4913,12 @@ run_update_beacon(struct ieee80211vap *v
 	}
 
 	setbit(rvp->bo.bo_flags, item);
+	if (rvp->beacon_mbuf == NULL) {
+		rvp->beacon_mbuf = ieee80211_beacon_alloc(vap->iv_bss,
+		    &rvp->bo);
+		if (rvp->beacon_mbuf == NULL)
+			return;
+	}
 	ieee80211_beacon_update(vap->iv_bss, &rvp->bo, rvp->beacon_mbuf, mcast);
 
 	i = RUN_CMDQ_GET(&sc->cmdq_store);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410220332.s9M3WRhf078882>