From owner-svn-src-all@FreeBSD.ORG Mon May 13 21:17:28 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7ABC0B75; Mon, 13 May 2013 21:17:28 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 6A80FACF; Mon, 13 May 2013 21:17:28 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4DLHSQg093788; Mon, 13 May 2013 21:17:28 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4DLHSTl093787; Mon, 13 May 2013 21:17:28 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201305132117.r4DLHSTl093787@svn.freebsd.org> From: Adrian Chadd Date: Mon, 13 May 2013 21:17:28 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r250618 - head/sys/dev/ath X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 May 2013 21:17:28 -0000 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); }