Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Oct 2010 15:05:39 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r213580 - head/sbin/hastd
Message-ID:  <201010081505.o98F5dWE097595@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Fri Oct  8 15:05:39 2010
New Revision: 213580
URL: http://svn.freebsd.org/changeset/base/213580

Log:
  We can't zero out ggio request, as we have some fields in there we initialize
  once during start-up.
  
  Reported by:	Mikolaj Golub <to.my.trociny@gmail.com>
  MFC after:	3 days

Modified:
  head/sbin/hastd/primary.c

Modified: head/sbin/hastd/primary.c
==============================================================================
--- head/sbin/hastd/primary.c	Fri Oct  8 15:02:15 2010	(r213579)
+++ head/sbin/hastd/primary.c	Fri Oct  8 15:05:39 2010	(r213580)
@@ -930,7 +930,6 @@ ggate_recv_thread(void *arg)
 		QUEUE_TAKE2(hio, free);
 		pjdlog_debug(2, "ggate_recv: (%p) Got free request.", hio);
 		ggio = &hio->hio_ggio;
-		bzero(ggio, sizeof(*ggio));
 		ggio->gctl_unit = res->hr_ggateunit;
 		ggio->gctl_length = MAXPHYS;
 		ggio->gctl_error = 0;



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