From owner-p4-projects@FreeBSD.ORG Sat Apr 8 06:41:52 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 81E5016A422; Sat, 8 Apr 2006 06:41:52 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4180E16A41F for ; Sat, 8 Apr 2006 06:41:52 +0000 (UTC) (envelope-from jmg@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C01B943D48 for ; Sat, 8 Apr 2006 06:41:51 +0000 (GMT) (envelope-from jmg@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k386fppT020503 for ; Sat, 8 Apr 2006 06:41:51 GMT (envelope-from jmg@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k386fpGm020495 for perforce@freebsd.org; Sat, 8 Apr 2006 06:41:51 GMT (envelope-from jmg@freebsd.org) Date: Sat, 8 Apr 2006 06:41:51 GMT Message-Id: <200604080641.k386fpGm020495@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jmg@freebsd.org using -f From: John-Mark Gurney To: Perforce Change Reviews Cc: Subject: PERFORCE change 94795 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Apr 2006 06:41:52 -0000 http://perforce.freebsd.org/chv.cgi?CH=94795 Change 94795 by jmg@jmg_arlene on 2006/04/08 06:41:23 zero memory, mtx_init can fail thinking it's already initalized even though it isn't... Affected files ... .. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/hviommu.c#5 edit Differences ... ==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/hviommu.c#5 (text+ko) ==== @@ -207,7 +207,7 @@ struct hviommu *him; u_long end; - him = malloc(sizeof *him, M_HVIOMMU, M_WAITOK); + him = malloc(sizeof *him, M_HVIOMMU, M_WAITOK|M_ZERO); mtx_init(&him->him_mtx, "hviommu", NULL, MTX_DEF); him->him_handle = dh;