Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2629629ybv; Mon, 24 Feb 2020 08:39:55 -0800 (PST) X-Google-Smtp-Source: APXvYqxpUfPC66fZ+s5vt3cqZeM/WYAgzVSihaz5wyS1wFZ/XD4Uqbvd2Ot3Ro6nvxOKp3aRhsoF X-Received: by 2002:aca:f1c6:: with SMTP id p189mr13307025oih.159.1582562394913; Mon, 24 Feb 2020 08:39:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582562394; cv=none; d=google.com; s=arc-20160816; b=KtVkUw20h4hRm7CmyBQeqgLdd8l7FizneiEHhWyZoPjUdDYLmMmh6jUNB73KkhqTr+ AFOaCSm7WbVkwXyimCJ5WdJYQ2BSdHs6uPMFHwNHc3hYaN/eQEHMGum+e54imF7DxPZ6 5IoJjRHsnFamT5kGy1kyFvY8QKUiMGPQ6TCEty3xU/pjlPg5w+mfEu3hpXj5tWTcFNNg oCHi5UDSW446jy+/GwEavzDiZfpSgDGzRuIqGa5LO3UTKntBxuDIQAtkMgs7ROnqVel/ eQW4THNtMaWGtzMaAOg7DXvkGJeif6bIwqUNIZKdtmXGma+hsz4bD9FeqIjxw1pgLavx KukQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=M0sdWUeHuBr96/VIOIWdMJQh5Jm26LqtJhhLqkI4P9E=; b=C8QSfPenWxYlqarLhL3an1nyq+qx9Llk6TydW2e2BzcCW7m0V09ECThZpQ26COZMkQ 21L4+H7lTrMnija0wx4OQveLAB9AsOmr4zPGqVSnrNXWwYqVBpLuRCkiIi9cfcaGy4Q3 +gWFSlXNaox4r7xYCdnQbos4uk5o6lYG/jdx1a6W7VQPHTpQU9bdTpUA5glyZIqyemkV VKTApwcfU0z8mqNn9woIofhpVAbmqhvLARqN/JyqVm+gH/1v6fzG+I9l9YRXNbcG8zWG UcjqJgKhsX6lbY5TR/GiNgstqflD7A8kFQYOuDxwPsoPQGTUz1CiJes+4QoXKRtm8jDB p/lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="VR/V9ht7"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t3si5023293oig.25.2020.02.24.08.39.42; Mon, 24 Feb 2020 08:39:54 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="VR/V9ht7"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727833AbgBXQjS (ORCPT + 99 others); Mon, 24 Feb 2020 11:39:18 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:51587 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727486AbgBXQjR (ORCPT ); Mon, 24 Feb 2020 11:39:17 -0500 Received: by mail-wm1-f67.google.com with SMTP id t23so9645030wmi.1; Mon, 24 Feb 2020 08:39:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=M0sdWUeHuBr96/VIOIWdMJQh5Jm26LqtJhhLqkI4P9E=; b=VR/V9ht7eiYkE1kOrJhTS3S18UETRmWMnanPviE4Sdd/KzC6tw7wU5EHE9HI1rWNwF v8HHl2b0AWJFaNXX3OoheDHUt0Piu6RAX7x4lnjTIGjq5uuSkaKjMfDSa+TnSHfx40vF Nw0sfJQjmWfvOCanXcycN+b2SWmK6rUb9dG/cyGpiHQrgJvJJzcTU4CuIYVLH0ANNUF2 ATCQ3HsGEVTj2/RHrRztv2Gc0AFq3GGyPSvivAb0u4QvZjau0nr7CWBrK3lZ5BgRzhMp IqBmqodaKIHqLCGn/avqnAk82WOg2nN8FrnzkQHTWq5ou12Eqj10iauss70qgojNX2Qg 9arg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=M0sdWUeHuBr96/VIOIWdMJQh5Jm26LqtJhhLqkI4P9E=; b=gRbK6CBchLq4hcIovdeJ4Q1wXEVnsfwxT8771YVBPg48U220BhaUanO0BI4O148shr GYdiswM4yT91RcHQBPYL/03TeD+2E1WhhoS7YDPbpE+J0NTm29f0FGz52mi+1680IoSE f/BWcrRUor8Su/j2Q5VMG0fvvNE1v5zXjE/5KghmsFYb9ON4iEeZcRJ/frUBcwzgv8Ox Oz6Y02OtlNrShhvP3Yt+In6+d3deU9DzU3a5kGZlGu1UvTC2J3ZhtUeL21XXQk0p+U7Q rL600ty0YfMgvVDXw5OgPzJLXf0DhR5nxKMSRHagIDkPj9rzFHH83BYoKFAJYrE/ARqN nR5A== X-Gm-Message-State: APjAAAXX8q7Xb+kWh/kZZ3ScW/PHUYU8q5vTbEtrFs77wJOrkjN5TrRg GbGH5u3G223yGTiprfz0XrEXaIL4pueQDOl+bWA= X-Received: by 2002:a05:600c:217:: with SMTP id 23mr22803384wmi.124.1582562355408; Mon, 24 Feb 2020 08:39:15 -0800 (PST) MIME-Version: 1.0 References: <20200127165646.19806-1-andrew.smirnov@gmail.com> <20200127165646.19806-4-andrew.smirnov@gmail.com> In-Reply-To: From: Andrey Smirnov Date: Mon, 24 Feb 2020 08:39:03 -0800 Message-ID: Subject: Re: [PATCH v7 3/9] crypto: caam - use devm_kzalloc to allocate JR data To: Horia Geanta Cc: "linux-crypto@vger.kernel.org" , Chris Healy , Lucas Stach , Herbert Xu , Iuliana Prodan , "linux-kernel@vger.kernel.org" , dl-linux-imx Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 11, 2020 at 10:23 AM Horia Geanta wrote: > > On 1/27/2020 6:57 PM, Andrey Smirnov wrote: > > Use devm_kzalloc() to allocate JR data in order to make sure that it > > is initialized consistently every time. > > > The commit message is a bit vague. > > I assume this is needed in patch 4/9, which adds a new member (hwrng) > in caam_drv_private_jr structure. > > If so, it's probably better to have the change merged into patch 4/9. > Yes, it is specifically needed for 4/9, but it's generally a good practice to zero out allocated memory, so I made it a separate patch. Will fold it into 4/9, since that's what you prefer. Thanks, Andrey Smirnov