Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 May 2013 21:17:28 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r250618 - head/sys/dev/ath
Message-ID:  <201305132117.r4DLHSTl093787@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Mon May 13 21:17:27 2013
New Revision: 250618
URL: http://svnweb.freebsd.org/changeset/base/250618

Log:
  Support sending ATH_ALQ messages with no payload.

Modified:
  head/sys/dev/ath/if_ath_alq.c

Modified: head/sys/dev/ath/if_ath_alq.c
==============================================================================
--- head/sys/dev/ath/if_ath_alq.c	Mon May 13 20:28:24 2013	(r250617)
+++ head/sys/dev/ath/if_ath_alq.c	Mon May 13 21:17:27 2013	(r250618)
@@ -184,9 +184,11 @@ if_ath_alq_post(struct if_ath_alq *alq, 
 	/*
 	 * Copy the payload _after_ the header field.
 	 */
-	memcpy(((char *) ap) + sizeof(struct if_ath_alq_hdr),
-	    buf,
-	    len);
+	if (buf != NULL) {
+		memcpy(((char *) ap) + sizeof(struct if_ath_alq_hdr),
+		    buf,
+		    len);
+	}
 
 	alq_post(alq->sc_alq_alq, ale);
 }



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