Received: by mail.netbsd.org (Postfix, from userid 605) id D42DF855D4; Sun, 29 Jan 2017 05:25:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 60953855EE for ; Sun, 29 Jan 2017 05:25:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id 1xIKe0t-Bz7l for ; Sun, 29 Jan 2017 05:25:03 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id D0E1B84CE9 for ; Sun, 29 Jan 2017 05:25:03 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id CF29CFBA6; Sun, 29 Jan 2017 05:25:03 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sun, 29 Jan 2017 05:25:03 +0000 From: "Soren Jacobsen" Subject: CVS commit: [netbsd-7-0] src/sys/external/bsd/drm2/dist/drm/ttm To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20170129052503.CF29CFBA6@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Soren Jacobsen" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: snj Date: Sun Jan 29 05:25:03 UTC 2017 Modified Files: src/sys/external/bsd/drm2/dist/drm/ttm [netbsd-7-0]: ttm_tt.c Log Message: Pull up following revision(s) (requested by maya in ticket #1350): sys/external/bsd/drm2/dist/drm/ttm/ttm_tt.c: revision 1.8 Guarantee no zero-size uao/kmem allocations via ttm. It may be that all callers guarantee no zero-size ttm objects, but I can't prove that in five minutes of browsing callers. Rather than add a KASSERT, lacking proof, we'll add a warning message so that if it does happen then it happens noisily, but we'll also prevent the bad consequences of passing zero into uao_create by rounding up to a harmless nonzero allocation. XXX pullup-7 To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/external/bsd/drm2/dist/drm/ttm/ttm_tt.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.