From owner-svn-src-head@freebsd.org Sat Jan 13 22:34:36 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EC802EB3688 for ; Sat, 13 Jan 2018 22:34:36 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from sonic309-35.consmr.mail.ne1.yahoo.com (sonic309-35.consmr.mail.ne1.yahoo.com [66.163.184.161]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BFCBC7B72F for ; Sat, 13 Jan 2018 22:34:36 +0000 (UTC) (envelope-from pfg@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1515882869; bh=i5NMKWD3wgmlpnuvUSTvvmgzyjgC24n1kJnLYnuXcrs=; h=Subject:From:To:References:Date:In-Reply-To:From:Subject; b=P1iCi3MOFGAL5V+XBzLdAqUZPddXK1KCqjD76022M05r/6HWQTIl4OOyLH5bgslbgW/ujqm1nU37H46jrb+3xrZe9ko+D7aZinzcZQNcqnLdhxciHBxgDgDszHXHc8Q+iu/g4IPPIBKI3tBmo56nuz91AJY2Px8ec5ebzP1ww10JJvJ9WeetIEaGno2R7HnJKiaHLL/UJCKyekURB+y36QpNtK5AYCuZve7/rCZuGyAYkYaDqNUsKVCmM/Zz0B9KxuTG3W7rzSuzW5Bpzv/BPJM5Qzikv86ORDpvp6GScIT56zpvA0G74/KBA4jmH9LQSCN0n9Fk72rc2EpMgdP+4g== X-YMail-OSG: PuK9uloVM1m8brSagtTWlHLlpb5TrA4DvpYATeesMTPuaAcwxeoYUZY881awH_I xVZ33ef8pXuiBnNenpwEIs1RE.POhXc2oDqHhAPSRmPN3QPfIEHUZZIGZt2fyvVEvFATUTYXEjDf YR8KHtnWnUMwGpJ0rDf2ZML9FqD.TSFbHj77wwsXYbtvYFj9FGVMhWMaWfUYo_k8Ntp0nps3TR_r ExeAjfJ79K0tKS.SjzH0xL7vtNox7Sumb7r6LZv3la8m64uvMjzrfp4VGue8TKiIPbgtZKAVoa19 1OBnUS19YyJ0SZmANOv0Lrqj6tXhBUW63st8YWjEjySqvG_8VkCAkkGiCxfIe2icqnL8yOovJxt0 tBT6xA8Kx3bUrpBFPwRCSE1x5.8iYmecbRwhC8xVpYRcIaQUfjN8FfWGdhzczOvMLPvHRJHOgKyE jheH_eaZqMAoo2W1R.oP8_9SwvHuKKioPrtpAtQtLhZU3ucCfBk4dLW5UHzGqzYB22OGWT046 Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Sat, 13 Jan 2018 22:34:29 +0000 Received: from smtp235.mail.ne1.yahoo.com (EHLO [192.168.0.8]) ([10.218.253.206]) by smtp410.mail.ne1.yahoo.com (JAMES SMTP Server ) with ESMTPA ID a8138e14407a32871ff47ab2d66e5170; Sat, 13 Jan 2018 22:34:25 +0000 (UTC) Subject: Re: svn commit: r327949 - in head/sys/dev: aacraid advansys ath beri/virtio bnxt bwn ciss cxgbe/crypto esp fb gpio if_ndis iwi kbd liquidio liquidio/base mpr mps mpt mrsas mxge netmap nvme pst ral rp s... From: Pedro Giffuni To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201801132230.w0DMUVmF081985@repo.freebsd.org> Message-ID: <7fe2a0bb-8592-75bc-6f58-cb77e2d6044c@FreeBSD.org> Date: Sat, 13 Jan 2018 17:34:24 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <201801132230.w0DMUVmF081985@repo.freebsd.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jan 2018 22:34:37 -0000 On 01/13/18 17:30, Pedro F. Giffuni wrote: > Author: pfg > Date: Sat Jan 13 22:30:30 2018 > New Revision: 327949 > URL: https://svnweb.freebsd.org/changeset/base/327949 > > Log: > dev: make some use of mallocarray(9). > > Focus on code where we are doing multiplications within malloc(9). None of > these is likely to overflow, however the change is still useful as some > static checkers can benefit from the allocation attributes we use for > mallocarray. > > This initial sweep only covers malloc(9) calls with M_NOWAIT. No good > reason but I started doing the changes before r327796 and at that time it > was convenient to make sure the sorrounding code could handle NULL values. > For the record, this was part of https://reviews.freebsd.org/D13837 I didn't mention it in the commit log because I am not ready to close the revision yet. Pedro.