Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5938731ybi; Wed, 12 Jun 2019 11:03:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqww6SsxGFnLUmJJUWMtoX+FB37HEum+Zhw/piZbdSxPNMbh4UogVaCWBqanWJjlwAj8oqJc X-Received: by 2002:a17:902:3103:: with SMTP id w3mr81772691plb.329.1560362588978; Wed, 12 Jun 2019 11:03:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560362588; cv=none; d=google.com; s=arc-20160816; b=jiqvW9NSIjeC3nFM+qmRKsKtEQdPdsmDZOVev/VHJqqIm0w88TAQKa722WZmyABz7a idWuDGj/JABukc3GOC2SfzdYOx9AhrKKtZohXqa2vXWXaSUqAHzK32aCL8SxSDNt0jJg Jl6qBkoPSsK0DRN71DqqvqzHQlqcS3akTDCa3owdyUHLhd84tJC2zXa9IXhhT14LlRar TxZRx9CmGIhMA5UvzxOldz7kDhiPTEYVsKzlg1oNsjO3u6ROXkCkzxvnufZ1rFS3yoRh 6kZ3RzNIkVkRh5dAgcUm8anjYcwgpnVNCytOTVa6I3M7iTfQcKn9P2Kcb/XRByVMh7zu KpWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=ivgEXfCwCEVC4JNeCIDJXCawQYQ+gZ8JagqFrBrI+fo=; b=MZNNNByT8NxnaQfLz3b/enmYfAEqPjBLk7Jr/F7ZYd8yuvWl/HICAv6cys4G8Gkzdc HcmzZ/WzYNuJ6SpXgPsD7wksbRqu6KQdhbDs4CUNdkQjHIHh4FDG9rSnVyxiJ7/Lkwci 5GThr30vaLYniDZV3RxqZCQdwe+J6Aw+2fCXXlbjMVNttBPRzFITCy2g2Xudp70daW6r noZprOdk0fRzXWNes+K6dYr+PygaHvYGdugA0eqnNPVdTD6B3dpEdvsSuk/NeGuPWgDo dnw6CE9GNvKB/sKf4rkQ+PNlKOc4LubMhATKissWStpO2wiuwUK6sw33KTes77Soj3cG EOhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b="JGtoU/Ek"; dkim=temperror (no key for signature) header.i=@fluxnic.net header.s=2016-12.pbsmtp header.b=hUPL4hXe; 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 n14si440770pgs.34.2019.06.12.11.02.53; Wed, 12 Jun 2019 11:03:08 -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=@pobox.com header.s=sasl header.b="JGtoU/Ek"; dkim=temperror (no key for signature) header.i=@fluxnic.net header.s=2016-12.pbsmtp header.b=hUPL4hXe; 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 S1731506AbfFLOcI (ORCPT + 99 others); Wed, 12 Jun 2019 10:32:08 -0400 Received: from pb-smtp21.pobox.com ([173.228.157.53]:65232 "EHLO pb-smtp21.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729261AbfFLOcI (ORCPT ); Wed, 12 Jun 2019 10:32:08 -0400 Received: from pb-smtp21.pobox.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 1C6E17809F; Wed, 12 Jun 2019 10:32:08 -0400 (EDT) (envelope-from nico@fluxnic.net) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sasl; bh=bOMQaaOm2gKMIqGX2iIXCgseqvA=; b=JGtoU/ Ek14mXheuKDS8vYJeDozewP8TnNyKPgklm+TD6DytThxtCrKzRXfZcLq5y5Ru+zp TzWqUZylSje/68StcZRupW3x62HsNChGRBjOZLaVCrXOfW1rnzDX50yaWRf7SCwZ mI571kAcgJN+u1VEXxuxVCT00UbHxNHg4dBno= Received: from pb-smtp21.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 135FA7809E; Wed, 12 Jun 2019 10:32:08 -0400 (EDT) (envelope-from nico@fluxnic.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=fluxnic.net; h=date:from:to:cc:subject:in-reply-to:message-id:references:mime-version:content-type; s=2016-12.pbsmtp; bh=ossT+PSBWcBxEnICc2cDyEQ5Oy8oKOI11AMP/+LakHA=; b=hUPL4hXeoHn9v2aOMY0srFAEF4RRmpDqQpuOkvXEeD475DSRadF6yx3FsnRXEUEkAA1EXUQsEVVbTa/b2aUU767fj9DADX/5TYLhrgiCDclq88G6SwT58GShTSYxPDw1oQDjt5KFYrbUO5v1f6Y/ufgD2TudPAos/1QmdJPCsCA= Received: from yoda.home (unknown [70.82.130.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp21.pobox.com (Postfix) with ESMTPSA id C953B7809D; Wed, 12 Jun 2019 10:32:03 -0400 (EDT) (envelope-from nico@fluxnic.net) Received: from xanadu.home (xanadu.home [192.168.2.2]) by yoda.home (Postfix) with ESMTPSA id 0AE162DA0205; Wed, 12 Jun 2019 10:32:02 -0400 (EDT) Date: Wed, 12 Jun 2019 10:32:01 -0400 (EDT) From: Nicolas Pitre To: Gen Zhang cc: Greg KH , 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() In-Reply-To: <20190612134449.GA4015@zhanggen-UX430UQ> Message-ID: References: <20190612131506.GA3526@zhanggen-UX430UQ> <20190612133838.GA7748@kroah.com> <20190612134449.GA4015@zhanggen-UX430UQ> User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Pobox-Relay-ID: D8DD0936-8D1E-11E9-9CA5-8D86F504CC47-78420484!pb-smtp21.pobox.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 12 Jun 2019, 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"? Given that this is your v4 patch, you should list what has changed since earlier versions. Greg is asking you to produce a v5 with that information added. Obviously, the change from v4 to v5 would be something like "added version change information". > > That always goes below the --- line. > And I can't see what goes wrong with "---". Could you please make some > explaination? The version change information should be put below the --- line in your post, not above it. This way it won't be captured in commit log. Nicolas