Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6798916ybi; Wed, 29 May 2019 13:23:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxXQ4nSUe+llbwIzYvlBX6/7bFV9QCxqV+tFG3kRA8CyOdx+Dp/8tp/i6D+z4vfR4xugCRj X-Received: by 2002:a63:4826:: with SMTP id v38mr15228266pga.417.1559161384586; Wed, 29 May 2019 13:23:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559161384; cv=none; d=google.com; s=arc-20160816; b=Nrg3h5Z3vPY8U+RslWzwviZr0PX4lBLcFY4THfVuutqvUgUftYfc6/ys1AZaedd6+v Tw63AhsqoUUYd1/Y6S5Qtf6aYjJRmAE12LwhhIboC8EoAFgF5sfTis/cYiv0G8ozqRWG 0zTlbPsNKIPxDPrEXmpfMPK1PutoZ7tOqJxCGNTu7W+dDDo+pj10+rRqHAB57I/DgEhH 2SThOd+fNFCS4/PMZR9VCb4+VCI6BM8L7iJUQdfmXrgFRdk0Z7PSiQDPce8jn0c2i+0Z fCumS8ekystA/vv/uoQq8Nwogod7+GtYzLbt/gaqz3puiF7Xtvl8QUsr980Z0NZRYgd1 ESDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:to:subject:date:from; bh=uQSUYjbbhNJJR+WKBMkOlpgOSvBfo2OrEtemp7uGi8M=; b=zX/Mq3SdKmrcbpML6KsdDHNorVGqR5UGzv2aIVYFPe46bBDToiHNQiDdITJDl7BduX JIPKwkj8xntot4GTigTYexlJoWhhCodybNIQovA82L5M2LMlGVC2O1zsfqjS//5IUP+m EVknlTNu+upOq6PM6/zMhsG2rP+za49sZRjWWvwhPnDRSgCUdvTAXhEjw9buGgL42EOb L46uk+RL9XoPdImDu2m/TRrQ1AaJJJ6DljHZhGK1HACaAymgrGkcBwxJJGt1jEbSIYUU ZFhjo618O2NVfpPY1pKgrSw24eMc4O3hFQKg4KTa3xegZCCVMjzLXaSm0n3+3RZ8Mjt2 cycw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t189si813199pgc.530.2019.05.29.13.22.46; Wed, 29 May 2019 13:23:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726186AbfE2UVg (ORCPT + 99 others); Wed, 29 May 2019 16:21:36 -0400 Received: from www17.your-server.de ([213.133.104.17]:55950 "EHLO www17.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725990AbfE2UVg (ORCPT ); Wed, 29 May 2019 16:21:36 -0400 Received: from [88.198.220.130] (helo=sslproxy01.your-server.de) by www17.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1hW54o-0005xn-VU for linux-kernel@vger.kernel.org; Wed, 29 May 2019 22:21:35 +0200 Received: from [2a02:908:4c22:ec00:915f:2518:d2f6:b586] (helo=maria.localdomain) by sslproxy01.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1hW54n-0006IJ-Lj for linux-kernel@vger.kernel.org; Wed, 29 May 2019 22:21:34 +0200 Received: by maria.localdomain (sSMTP sendmail emulation); Wed, 29 May 2019 22:21:32 +0200 From: "Thomas Meyer" Date: Wed, 29 May 2019 22:21:32 +0200 Subject: Cocci spatch "pool_zalloc-simple" - v5.2-rc1 To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patch: Cocci X-Mailer: DiffSplit Message-ID: <1559161113889-196429735-0-diffsplit-thomas@m3y3r.de> X-Authenticated-Sender: thomas@m3y3r.de X-Virus-Scanned: Clear (ClamAV 0.100.3/25464/Wed May 29 09:59:09 2019) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use *_pool_zalloc rather than *_pool_alloc followed by memset with 0. Found by coccinelle spatch "api/alloc/pool_zalloc-simple.cocci" Run against version v5.2-rc1 P.S. If you find this email unwanted, set up a procmail rule junking on the header: X-Patch: Cocci