Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5937274ybi; Wed, 12 Jun 2019 11:01:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzre91pr4DJ0zxxnBC8MKixoWVOoflnTmmv8vzsS8591xrzmBGFMr0pTl7Hn2DmRKDSmbWN X-Received: by 2002:a63:1119:: with SMTP id g25mr25786999pgl.380.1560362509530; Wed, 12 Jun 2019 11:01:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560362509; cv=none; d=google.com; s=arc-20160816; b=joj540bc8+5mJQbvpuqljSl0FjlxnErLMlKB7pQ/olzCUAi40WF+eFmDb5D8nM6cra R21RHhyPRT5B/ofghermmXbeqaPTEbQw+nkUxxXN4HKYqpr22dzLCdjW5v7IfVM0FWsO E5I4ySsSAlJS0NAfd9kbXOK0EHnV4paPsgOKEDxnkocmr3PAmccr+34uoIDjOatXzk1/ VT5BOcPXLTawQ5vSvr94uzjWqE28ilFqqhM7alFUgPwCaMjcDu0Km47GUA52PSlsYy3+ iXyitgwq7akZyp+TmeJTFvSh3AmEjdALS3YfRGgOHOIz/GtPzcfyiWnX9t4U/szf2UQL AHLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=N50+kW1R4csk0OO+XEfxjvhVDxqFy74ZQ2Zazk1DI1c=; b=jHwENZbc2VK8wai9X6UFKE5lXUQMa1+za3BPsEQrEWsGAjYINA2Ds0TZfdiORf5RKh 9pqlDr4ZH0J4S9CN2fh2QlaoUP7XcZjeLiALZcnVuvA//IE3aZQJor12n4KB+6Ufukq6 +uLTxBVtEdAzU11mZBkbzEB3BW6HG7MBh4b/Sp32BEjQyjtRKVRl9BjXtdyQT0a9yxdM 46zRCWcyssgD1opbH3ekLlSBmOvTtQ3M3dHIIeNMJafM32EXCEZFxNKx88WbyqbCtTJS NTb6WmNvh4G+skyENSplz/+MxFrReEPYm/x+13+rBixUK8itQnFUlizlTMFOqES3o/Uv 51Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LkTq40C0; 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 h12si409734pgr.325.2019.06.12.11.01.34; Wed, 12 Jun 2019 11:01:49 -0700 (PDT) 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=pass header.i=@kernel.org header.s=default header.b=LkTq40C0; 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 S2409342AbfFLOXt (ORCPT + 99 others); Wed, 12 Jun 2019 10:23:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:44734 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407842AbfFLOXs (ORCPT ); Wed, 12 Jun 2019 10:23:48 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 72C47208CA; Wed, 12 Jun 2019 14:23:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560349428; bh=Epy3kS13Rkvvvma6r/YPkgen0bYM96jquMd812WLj7s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LkTq40C0qTdaAi59xMNtWhOngjBAjv2RA1O3Cm1GHRWG87eu/iIGkSMAClu9KzsPP dKgMgxbntbq3vLUtMeyMUKsEXTV5vS+xrv2jiKHDeRFAq2WUTCTGiJXG/8geCGRAuR SU8Xt4frLmZ6Mxumzc42sXXZ15ZMCUmM/oF4n5oI= Date: Wed, 12 Jun 2019 16:23:45 +0200 From: Greg KH To: Gen Zhang Cc: nico@fluxnic.net, kilobyte@angband.pl, textshell@uchuujin.de, mpatocka@redhat.com, daniel.vetter@ffwll.ch, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] vt: fix a missing-check bug in con_init() Message-ID: <20190612142345.GB11563@kroah.com> References: <20190612131506.GA3526@zhanggen-UX430UQ> <20190612133838.GA7748@kroah.com> <20190612134449.GA4015@zhanggen-UX430UQ> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190612134449.GA4015@zhanggen-UX430UQ> User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 12, 2019 at 09:44:49PM +0800, Gen Zhang wrote: > On Wed, Jun 12, 2019 at 03:38:38PM +0200, Greg KH wrote: > > On Wed, Jun 12, 2019 at 09:15:06PM +0800, Gen Zhang wrote: > > > In function con_init(), the pointer variable vc_cons[currcons].d, vc and > > > vc->vc_screenbuf is allocated by kzalloc(). However, kzalloc() returns > > > NULL when fails. Therefore, we should check the return value and handle > > > the error. > > > > > > Signed-off-by: Gen Zhang > > > --- > > > > What changed from v1, v2, and v3? > Thanks for your timely response. I am not a native English speaker, so > I am not sure I understand this correctly. Does this mean that I should > use "v5", rather than "v4"? "v" means "version". You need to list what you changed with each version of this patch. The documentation in the kernel tells you how to do this. > > That always goes below the --- line. > And I can't see what goes wrong with "---". Could you please make some > explaination? Again, please read the documentation, it describes how to do this for patches that have gone through multiple versions. thanks, greg k-h