Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751814AbbLOFnX (ORCPT ); Tue, 15 Dec 2015 00:43:23 -0500 Received: from e18.ny.us.ibm.com ([129.33.205.208]:51538 "EHLO e18.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750801AbbLOFnW (ORCPT ); Tue, 15 Dec 2015 00:43:22 -0500 X-IBM-Helo: d01dlp02.pok.ibm.com X-IBM-MailFrom: xinhui@linux.vnet.ibm.com X-IBM-RcptTo: linux-kernel@vger.kernel.org Subject: Re: [PATCH] tty/n_gsm.c: fix false positive WARN_ON and do some codes improvement To: Greg Kroah-Hartman References: <5655990D.7090300@linux.vnet.ibm.com> <20151214185513.GA19131@kroah.com> Cc: linux-kernel@vger.kernel.org, Jiri Slaby , dvyukov@google.com, yanmin_zhang@linux.intel.com From: Pan Xinhui Message-ID: <566FA86B.6060408@linux.vnet.ibm.com> Date: Tue, 15 Dec 2015 13:43:07 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151214185513.GA19131@kroah.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15121505-0045-0000-0000-000002BF53B7 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1100 Lines: 26 Hi, Greg This patch is dropped, I have created another patch based on Jiri' patch. On 2015/12/15 02:55, Greg Kroah-Hartman wrote: > On Wed, Nov 25, 2015 at 07:18:37PM +0800, xinhui wrote: >> From: xinhui >> >> If gsm driver fails to activate one mux, and this mux is not stored in >> gsm_mux[], there would be a warning in gsm_cleanup_mux(). Actually this >> is a legal case. So just do a simple check instead of WARN_ON. >> >> There is one filed gsm->num to store its index of gsm_mux[]. So use >> gsm->num to remove itself from gsm_mux[] instead of the for-loop >> traverse. >> >> Reported-by: Dmitry Vyukov >> Fixes: 5a64096700dc ("tty/n_gsm.c: fix a memory leak in gsmld_open") >> Signed-off-by: Pan Xinhui > > the signed-off-by name has to match your from: name :( > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/