Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Apr 2013 05:30:01 GMT
From:      dfilter@FreeBSD.ORG (dfilter service)
To:        freebsd-embedded@FreeBSD.org
Subject:   Re: bin/177871: commit references a PR
Message-ID:  <201304220530.r3M5U1lw021816@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/177871; it has been noted by GNATS.

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/177871: commit references a PR
Date: Mon, 22 Apr 2013 05:27:21 +0000 (UTC)

 Author: adrian
 Date: Mon Apr 22 05:27:13 2013
 New Revision: 249747
 URL: http://svnweb.freebsd.org/changeset/base/249747
 
 Log:
   Initialise this to zero before using it to configure the vlangroup
   information.
   
   PR:		kern/177871
   Submitted by:	Luiz Otavio O Souza <loos.br@gmail.com>
 
 Modified:
   head/sbin/etherswitchcfg/etherswitchcfg.c
 
 Modified: head/sbin/etherswitchcfg/etherswitchcfg.c
 ==============================================================================
 --- head/sbin/etherswitchcfg/etherswitchcfg.c	Mon Apr 22 05:02:34 2013	(r249746)
 +++ head/sbin/etherswitchcfg/etherswitchcfg.c	Mon Apr 22 05:27:13 2013	(r249747)
 @@ -139,6 +139,7 @@ set_port_vlangroup(struct cfg *cfg, char
  	v = strtol(argv[1], NULL, 0);
  	if (v < 0 || v >= cfg->info.es_nvlangroups)
  		errx(EX_USAGE, "vlangroup must be between 0 and %d", cfg->info.es_nvlangroups-1);
 +	bzero(&p, sizeof(p));
  	p.es_port = cfg->unit;
  	if (ioctl(cfg->fd, IOETHERSWITCHGETPORT, &p) != 0)
  		err(EX_OSERR, "ioctl(IOETHERSWITCHGETPORT)");
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 



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