From owner-freebsd-arch@FreeBSD.ORG Fri Jul 31 08:58:47 2009 Return-Path: Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E212A106567E; Fri, 31 Jul 2009 08:58:47 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.delphij.net (delphij-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:2c9::2]) by mx1.freebsd.org (Postfix) with ESMTP id 188E28FC20; Fri, 31 Jul 2009 08:58:44 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [211.166.10.233]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.delphij.net (Postfix) with ESMTPS id 070AC5C024; Fri, 31 Jul 2009 16:58:43 +0800 (CST) Received: from localhost (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id CBDEA55CD9B6; Fri, 31 Jul 2009 16:58:42 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by localhost (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with ESMTP id lpz+y0VT1D08; Fri, 31 Jul 2009 16:57:49 +0800 (CST) Received: from charlie.delphij.net (c-67-188-2-183.hsd1.ca.comcast.net [67.188.2.183]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id 284FC55CD9B7; Fri, 31 Jul 2009 16:57:17 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=rWxyWg8xDf6Kd2QnZIieT/ybXU4nmrdb5ZqG7YS3cESJemUq+MVlA7e8b8zQTKHoE 09z+QqFeWRzXb71/Wj/Tw== Message-ID: <4A72B1DC.3040907@delphij.net> Date: Fri, 31 Jul 2009 01:57:00 -0700 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.22 (X11/20090701) MIME-Version: 1.0 To: freebsd-arch@FreeBSD.org X-Enigmail-Version: 0.95.7 OpenPGP: id=18EDEBA0; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: jmg@FreeBSD.org, MQ Subject: [PATCH] type issue in kern_event.c X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Jul 2009 08:58:49 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, MQ has bring this problem to my attention: the use of some sizeof()'s in kern_event.c was done against wrong object. Fortunately currently we have sizeof(list) == sizeof(*list), because "list" itself is a struct with only SLIST_HEAD as its member, which is also a pointer. I think these should be fixed, and here is my proposed patch. Comments? Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAkpysdwACgkQi+vbBBjt66BhwgCfWO2CH96HxvEdNB/g2/1qN4mr Ax0Ani+qIUN5EKJZwSQLul3BsmeaFufj =D12p -----END PGP SIGNATURE-----