Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp539771imu; Tue, 27 Nov 2018 16:56:19 -0800 (PST) X-Google-Smtp-Source: AFSGD/VBmC4fA2/1r6EyCT9XZcqtXqT/oOqa5ESP7T/bDSZBaORVS5ocFkJGBRKzaIrGeOInYy9J X-Received: by 2002:a62:2c4d:: with SMTP id s74mr32868553pfs.6.1543366579071; Tue, 27 Nov 2018 16:56:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543366579; cv=none; d=google.com; s=arc-20160816; b=OLQmt7eyv7omu4mrjqXVH/ZIVqSSgXkbf2FMCHTrCtZZ9fs/WgHHoi7sqAP6ZtbtYw 8pdvwOYf/P46jehkNhM1WYKgCKQg7IAx5saPzeUFuBNPKqeDmUiFqTzfsaD3eU8Dm2w3 rhAOiQsnUIrO0/a/cIlS9TTtJflXOAkQiOHAmUPTxMUSHsIB7KCrC0wSVRRTAqZn8Sek EfzwPb6CCyBqONtsrUjzQzNq/f9mcvo7/36r1SEcuGlk/HJjMYpSD/jKq2Wp+dbhIvb4 M+rMmPLusCnIf8jZZCWPVkJDuPY5NUsNh+t5FyJf5qxGiGgFW+ZFbyslGasLdf/Y0XLE m5rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:reply-to:dkim-signature; bh=Skxk4zXGdhd3JlW+YRz39F+uF4dmgIQKdRjwCAIBuiA=; b=JSUutUWHRrWCDSjoykeaJC+SjVUBIc/BXspGHq0n0d1qg2jbUfDFVYnTprd5o5KeY1 C7PeeVhPJdOrupfitRukQXtuJ0yeONwHdcTAdsQLDSg7PkaQ97qhjmpBdDMqrBknBhvO ZW0GRhPNNMg7cNGrVGgHvcvxpQv8b8g26CwARkufT3mhPEjarO9DEp+Di/Vnf264OYdv HGVVnOG0tq6XUY/K3LC80HRQR7MbVck4vX5jnHzY7I70CCzxrn4yDIdUWUV/FHutY4sW mlxRfZfFOs44gLzMfF/tANNMJysJK9tGwJBQvoFRqQDpRZEyDw1tSYBvHofxqNL62Q25 OhVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="H1/0wKui"; 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 31si5621465plj.244.2018.11.27.16.56.04; Tue, 27 Nov 2018 16:56:19 -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=fail header.i=@gmail.com header.s=20161025 header.b="H1/0wKui"; 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 S1727008AbeK1LzL (ORCPT + 99 others); Wed, 28 Nov 2018 06:55:11 -0500 Received: from mail-oi1-f178.google.com ([209.85.167.178]:34784 "EHLO mail-oi1-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726418AbeK1LzL (ORCPT ); Wed, 28 Nov 2018 06:55:11 -0500 Received: by mail-oi1-f178.google.com with SMTP id h25so21152735oig.1 for ; Tue, 27 Nov 2018 16:55:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:reply-to:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=Skxk4zXGdhd3JlW+YRz39F+uF4dmgIQKdRjwCAIBuiA=; b=H1/0wKuiVAizA06iZ84nEkLbi+ZjsfoEww8+qCaVIN79lq7Dxat2cjw2t9tjBq8t/d ZjrVU6b8p3NjpivzyhjIisP3cg9jo08ihU1ti8rSuNLXP1f+xlx+gKEWW2rTUiJY7H1q OZB1wEHLVOjC1MN6yy5s7w7rRYnx2493PN5OjU5K+ddIja/ycvEKoJadkCl4+JthSEAK kXKMh+LJhjRdLgXDJQlgf6VCYkM8NbmdJNSGD1YtR5+I+yzMP2UPXQU+VAimDOb0lRAj e83oFOiHRZNnU2oJCWpR5++wemYGBsC1eVgN78Qi4VWYtjSvcz/JMdDyOLtrtL27l9tN Uk1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:reply-to:subject:to:cc:references:from :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding:content-language; bh=Skxk4zXGdhd3JlW+YRz39F+uF4dmgIQKdRjwCAIBuiA=; b=QZIqIqSOtQ68b5jHebU8ju2hZX2yZD29Qh6y1WvHXA9f6LebkrYL+oe0DBpYLrKGES 3PrQfKC7hy52QQ13FSAbjCh9eHOQ2s4b21Fef63JPg3hU/e4yEgEzeMMgw5YFbRmX+Jh ThHhakLl9Vp6G+hVLTz0JTVW5gt2DxnaJjZihRc3UwrpCGAsWTxS+/7WGCvitooOBRKq HMeTQBoGQyieWpBz2KnBNJQ0ZnKpxyqHFIAQnfTLM7pCNaSXhDGS3tTNEkLIB6fMXhbq shBGligbxbAb6bxt2hIAtN8iS9qsV1q63DZEZCEYzI8vqPyhDrNRwb06WJlK1IBkUdfA eDkQ== X-Gm-Message-State: AA+aEWaSodhvnfVlvmITdImrT0/PHkuaBpA1m3Fk9PFa3wGH2fF2ze/V Eg6fCU393ulYTEJgAAw+Ig== X-Received: by 2002:aca:db41:: with SMTP id s62mr4640131oig.349.1543366528114; Tue, 27 Nov 2018 16:55:28 -0800 (PST) Received: from serve.minyard.net ([47.184.128.64]) by smtp.gmail.com with ESMTPSA id g18sm3624797oic.9.2018.11.27.16.55.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Nov 2018 16:55:27 -0800 (PST) Received: from [192.168.27.3] (t430m.minyard.net [192.168.27.3]) by serve.minyard.net (Postfix) with ESMTPSA id 051703A3; Tue, 27 Nov 2018 18:55:26 -0600 (CST) Reply-To: minyard@acm.org Subject: Re: [Openipmi-developer] [PATCH] ipmi: kcs_bmc: handle devm_kasprintf() failure case To: "Wang, Haiyue" , Nicholas Mc Guire Cc: Greg Kroah-Hartman , openipmi-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org, Arnd Bergmann References: <1542812905-27337-1-git-send-email-hofrat@osadl.org> <9320680f-679e-fc89-4349-17dbbd30bbfc@acm.org> <67962bdd-f7db-5a7d-e5d8-baaefd748ab5@linux.intel.com> From: Corey Minyard Message-ID: <9f64f5dd-6689-e28d-3316-bf7feb83ba46@acm.org> Date: Tue, 27 Nov 2018 18:55:25 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <67962bdd-f7db-5a7d-e5d8-baaefd748ab5@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/27/18 6:54 PM, Wang, Haiyue wrote: > [Resend for wrong reply HTML format mail] > > Great check for making kcs_bmc module be more stable and handle things > gracefully. > > My tag if needed. >      Reviewed-by: Haiyue Wang > Thanks for the review, it's included. -corey > 在 2018-11-27 21:36, Corey Minyard 写道: >> On 11/21/18 9:08 AM, Nicholas Mc Guire wrote: >>> devm_kasprintf() may return NULL if internal allocation failed so this >>> assignment is not safe. Moved the error exit path and added the !NULL >>> which then allows the devres manager to take care of cleanup. >> >> >> Added the original author.  This looks correct to me, I've included >> it, but I would >> like Haiyue to comment, if possible. >> >> Thanks, >> >> -corey >> >> >>> Signed-off-by: Nicholas Mc Guire >>> Fixes: cd2315d471f4 ("ipmi: kcs_bmc: don't change device name") > > > _______________________________________________ > Openipmi-developer mailing list > Openipmi-developer@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openipmi-developer