Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1296341pxb; Fri, 1 Apr 2022 09:29:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwA7Av2IWQ8etQxMIl/FAXceev6p+bzyV7aXpTRs+VmN1DXWtzhfG85ahxj2LeC40rrzMFY X-Received: by 2002:a17:907:a0c8:b0:6e0:da87:fde9 with SMTP id hw8-20020a170907a0c800b006e0da87fde9mr586634ejc.90.1648830580327; Fri, 01 Apr 2022 09:29:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648830580; cv=none; d=google.com; s=arc-20160816; b=KaZQyo0FwOc0tvOggAhA4FOdkgL159XWf1xhOS/LWkchFqZy9m4MslGVApvOzCTTps MMQ+OK9Y0Ael5l0K91Jgg7PNo99GSLzhjXOWA/sHNF4RQEma+F65IeRJbEyos9UmjtkF J43tkfXKuzcgRQ2h987M0R1EeHkTS1FrfmzRSIsm2tGPaI8CfBC5YETtbL1X+jPYf0la YSEyDPhuDD4aGQnhMqH8aw0Y6A7DBksAUJk3kDWmaxlaitwj3QZ/T9+nzVj1ElPVo1Kn +MM1fQMtAL/WJUCFgkMnpit97r2ZyRdW4uPWvt5NTTvnRy7h+JcAbTuRf4WWehP79qvV f/6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-filter; bh=GnJ5atnCyr0gG7gmtT6PQktePEnDt9sHKZ0eE7OLeHg=; b=McLjvLIfBisNvhfc9aHZ0N6N6lGOmna9GDM+J6Odq86oQ5n3H71vf1FAG/zt18BKFF yzzDB9X8YpErbzvAzWmYfQHILCLaNv1rO68Q3CBSD0DfA2vfunWLufXeSPMjziKcHN5q 6VPTBV4xwzCgeM6Issji6+jgFgiXAIW2th0gkJJCG9dByterM8RWqof+FAOhler7U24g CUdfBb5pLlukSdaBMNktHnol3RweiCxpe19CPxfJRtkA2zjPitFui+3/MBlcFGvd44HZ t7x13CMDOVRU+WX3c+zUhAzTeLWArUrhegNrKIwtT+pDwc5yN+rRgBwZ1CkHTxEmdwop 8XOQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g12-20020a056402090c00b00418c2b5bda7si2206699edz.137.2022.04.01.09.29.14; Fri, 01 Apr 2022 09:29:40 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344334AbiDAJLy (ORCPT + 99 others); Fri, 1 Apr 2022 05:11:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237887AbiDAJLx (ORCPT ); Fri, 1 Apr 2022 05:11:53 -0400 Received: from mxout01.lancloud.ru (mxout01.lancloud.ru [45.84.86.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59D7C198EE3; Fri, 1 Apr 2022 02:10:01 -0700 (PDT) Received: from LanCloud DKIM-Filter: OpenDKIM Filter v2.11.0 mxout01.lancloud.ru 3F4EA20B0ADF Received: from LanCloud Received: from LanCloud Received: from LanCloud Subject: Re: [PATCH v1] MIPS: ip22-gio: Add check for the return value of kzalloc() To: unSimple CC: , , , References: <1648454654-27200-1-git-send-email-unSimple1993@163.com> <6dd8bcf0-20a1-0bab-b48e-ec1bac5c15f0@omp.ru> <16aa9238.4bf6.17fd8fe37ad.Coremail.unsimple1993@163.com> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: <4eb43887-44a4-4693-8488-4847d80b6bd8@omp.ru> Date: Fri, 1 Apr 2022 12:09:57 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <16aa9238.4bf6.17fd8fe37ad.Coremail.unsimple1993@163.com> Content-Type: text/plain; charset="UTF-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [192.168.11.198] X-ClientProxiedBy: LFEXT01.lancloud.ru (fd00:f066::141) To LFEX1907.lancloud.ru (fd00:f066::207) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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 3/30/22 7:03 AM, unSimple wrote: > OK, here is the new version. That won't do, your original patch description should be here. And it should be a fresh posting with [PATCH v2] in the subject. > Signed-off-by: QintaoShen > --- You need to describe what changes between v1 and v2 here... >  arch/mips/sgi-ip22/ip22-gio.c | 4 ++++ >  1 file changed, 4 insertions(+) > > diff --git a/arch/mips/sgi-ip22/ip22-gio.c b/arch/mips/sgi-ip22/ip22-gio.c > index dfc52f6..f94f58b 100644 > --- a/arch/mips/sgi-ip22/ip22-gio.c > +++ b/arch/mips/sgi-ip22/ip22-gio.c > @@ -363,6 +363,10 @@ static void ip22_check_gio(int slotno, unsigned long addr, int irq) >  printk(KERN_INFO "GIO: slot %d : %s (id %x)\n", >         slotno, name, id); >  gio_dev = kzalloc(sizeof *gio_dev, GFP_KERNEL); > + No need for empty line here. > +if (!gio_dev) > +return; Hm, the tabs were there but they got eaten when I replied. Your mail seems to be base64-encoded which I don't think is acceptable for patches -- they should be posted as plain text. [...] MBR, Sergey