Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1777910iob; Thu, 19 May 2022 14:27:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2zIEe3N/Ouey5zVCLpNvdGbbeDBJsipjpECeC6nPKtj1c9cgAk2ZHphcodXTN4q/qV4h9 X-Received: by 2002:a17:907:72cc:b0:6f4:cc8a:2bcd with SMTP id du12-20020a17090772cc00b006f4cc8a2bcdmr6179277ejc.532.1652995674010; Thu, 19 May 2022 14:27:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652995674; cv=none; d=google.com; s=arc-20160816; b=YHkYyMSjNDdr3lqYA2tGGGQ74jnS5pZnOPU1sTW/J9Z2jxaV18upgD7/mIeMg1trSK 7Ye4e8eqtjvkDt3+9ejq9ea5P2IUVhgzHYyrMDfpoKApGHLf8RfjGwSeq/kVYTVHGBFF Hw/Lml6YjrVgr3GE2pbl6sde5goqYIVVR3VbWpM/MtbnJO+evDnZnqB97b+xLuKueqJk VgBZfEqCh2hNWa6nQWtIZIs0EY+WH+TQfNa73XgMEJtsD+3e6twrY/oO9ZHSJQ5Z5MMZ 6VQu1gpl70AnoSRtIbrV4fyzOEfn7ZnJK+xTZmN+gRfBYAMuvCmHStFGFS46kvIupLAD /C3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vbdDR+38ZnrSnzgQbXIlMsRN/x7Q6PrmzEjaPY7WvMc=; b=lnJwZ11jQN+Mmx+SB4EgJYYaG0AB2MCBeUowqxGHf8iNK3no8HzE+ZnqiKVcdfYH/x nP9suUmqPejdipHf7XtIQW/bW5fhZYwEaPnndRR9Awtjy0i3hXpA4ZQJYq7x9SOLXbX2 kreqZfsLNPhhfrSoccBbTkXpaNltBL+hVf+UeRmn1fqxvruCdzNFauWbTuaV2VtP3sBA 4giPNKhHL7TEsbuk01g4+fZOwH60snyP6gDUU7ANen18TFgJBcGugvWD9CAHWBQ3uB/D lHBmTFrzhFHQi4cDYsO2dNJAqf4ulMPCv26/BftKUBUEc0GO7eiHpkwGA+3kHoMO8u99 Vb3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vS0GV0ho; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o17-20020a170906975100b006f42bf415c8si7033066ejy.147.2022.05.19.14.27.27; Thu, 19 May 2022 14:27:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vS0GV0ho; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242269AbiESQ40 (ORCPT + 99 others); Thu, 19 May 2022 12:56:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242364AbiESQ4U (ORCPT ); Thu, 19 May 2022 12:56:20 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C674A4FC52; Thu, 19 May 2022 09:56:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7F2F2B81E94; Thu, 19 May 2022 16:56:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DFEFAC385AA; Thu, 19 May 2022 16:56:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1652979366; bh=rmkXuKAuTCkGVXWPr370lgteCoNM54F/HnyfT4y0AGo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vS0GV0hou4ePY2WEKK1sm71gnXDcK7cI6pBU00lMhvBtGgmvXEPeq/sZ//p74lWUi JtBEov3xLGjvA0FwK0+s/OSfoipWSpRIYVxaRMXGKVt7y4rpAS8c+sblr86sN3Csif 0ZUGa/bIAZFHlyRYI1rBL41BkHAwr+8PAGxagRXk= Date: Thu, 19 May 2022 18:56:03 +0200 From: Greg KH To: Srinivas Kandagatla Cc: linux-kernel@vger.kernel.org, Dan Carpenter , stable@vger.kernel.org, =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Subject: Re: [PATCH v2] nvmem: brcm_nvram: check for allocation failure Message-ID: References: <20220510093540.23259-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220510093540.23259-1-srinivas.kandagatla@linaro.org> X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 10, 2022 at 10:35:40AM +0100, Srinivas Kandagatla wrote: > From: Dan Carpenter > > Check for if the kcalloc() fails. > > Cc: stable@vger.kernel.org > Fixes: 299dc152721f ("nvmem: brcm_nvram: parse NVRAM content into NVMEM cells") This isn't a commit in any tree that I can see, are you sure it is correct? thanks, greg k-h