Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3665418rwb; Tue, 16 Aug 2022 07:00:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR503JmO7HtVcJWLa5b23uiu88zjWs7s0SwGCcsBtHaOCqwExb1gfYddB8fuORr6aBYmJbUQ X-Received: by 2002:a05:6402:1a3a:b0:43c:c4e5:8ebe with SMTP id be26-20020a0564021a3a00b0043cc4e58ebemr19318642edb.97.1660658453458; Tue, 16 Aug 2022 07:00:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660658453; cv=none; d=google.com; s=arc-20160816; b=I5QjeRZhedohpHxHzEpKSvJYlZr+0FVkpX0f3JOLtA330w18oNLlLdmrCJUf4V45VL AnlvIMIfOOSVAJtooJc5eow0ohVE5n0JarJLrkt11HhIWr2O379kESXWITCYqSDCyp1K RRTugPZAICf88KBr0DopPtDqBjpBgrvzWTtcfjt8++q3+WjAL80okjHUJxSaW3OgBDpT F4pjCGMlYWL+H3UOc1VRj1nWK2oNXtbiD8Io3fyP5aTgDsY8wAZ75u2iNLJedb/iy+wm R180FHYThpEN9EygrYDRXF6DmKYuMiPJMlPQQFJdRdfUElfDJjZv7qlrQ8QmLbHnVgh+ Jv2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=yvh34RKuDYCwSWo4NOJiY+LVGeslVJ1wW6e2jP2y+x4=; b=S558DTSuvRngCvB20oNqcVVu8HxIgq84zzmxT9ejDOl4WcBBPIxXi34aUtEKuq0N4v n0DdlomjbQmUL6n3dITeNnwDJebKcmvZWx+E8mqf2Rh8rC86itIp3lw3vwRBG+iYlwj/ TvdZHbW9FdVHHhSYiP7Gl0arc0eAf9A8JTZb/0GxUQjzjZ7URy7iB1CobLX56nR1Dmar FAu2hcDauN6WxL+ip5+SYO2bCsWuKJNlwzPy4MG9wC9LODGeLCw7rK8bngBVqd0VI2lw dZH0XX4anfQGIHyuelI7kGZ+4a+5CQ541yTV/Y4RuMV1aoY+mhmQ2EVqm9xs5MmDOmYu TSZA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q9-20020a056402248900b00442b9e3736fsi9699363eda.514.2022.08.16.07.00.26; Tue, 16 Aug 2022 07:00: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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233407AbiHPNuD (ORCPT + 99 others); Tue, 16 Aug 2022 09:50:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230332AbiHPNt6 (ORCPT ); Tue, 16 Aug 2022 09:49:58 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 693AB96FFC for ; Tue, 16 Aug 2022 06:49:39 -0700 (PDT) Received: from kwepemi500012.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4M6XVc4H6TzkWMp; Tue, 16 Aug 2022 21:46:16 +0800 (CST) Received: from dggphis33418.huawei.com (10.244.148.83) by kwepemi500012.china.huawei.com (7.221.188.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 16 Aug 2022 21:49:36 +0800 From: Gaosheng Cui To: , , CC: , Subject: [PATCH -next 0/2] A few fixup patches for nvmem Date: Tue, 16 Aug 2022 21:49:33 +0800 Message-ID: <20220816134935.263825-1-cuigaosheng1@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.244.148.83] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemi500012.china.huawei.com (7.221.188.12) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 This series contains a fixup patches to fix possible memleak, and add error handling of dev_set_name to keep nvmem code implementation consistent, in addition, it can also avoid the possibility illegal address access. Thanks! Gaosheng Cui (2): nvmem: core: Fix memleak in nvmem_register() nvmem: core: add error handling for dev_set_name drivers/nvmem/core.c | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) -- 2.25.1