Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5934535ybi; Wed, 12 Jun 2019 10:59:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGBwKpjf6NIAxz6rDceMC41kHsr3jvudhL7F41rkU3oPvbKJ2hK6rZ53aQmCcKu5iueDNN X-Received: by 2002:a17:902:2a29:: with SMTP id i38mr55264626plb.46.1560362351431; Wed, 12 Jun 2019 10:59:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560362351; cv=none; d=google.com; s=arc-20160816; b=rITBFTB2UP3avfh2MEPMbdtO9L7FzkKCwXLKcwRdWcpmAce33Lc5/XMxntOWP0TBjE rS1M+v8JeV91y9LlOH1e846zqF5hclEZqN/uo733sinxPXG0CqHVMdWUIYFqe6cfeJNq J13P8FJZZl4ErXmYlmZFcrQRWloUD03/bOBji7rjCZ7OGlTcNalT5bEoBmzZP8MD5nP1 nibwenHhu3bxE55CSmFoRyeWD6i8KQdl1hkkRkAYO2ovJPUjH9mqpW4hpEaHlVpV2Y8/ aJexgiDq3/IeZtbH5fre4fltG8ifmAP4vYPkcuYyjMaATqQAJ2y9q9e05iL6+VkyO3Yq vS4g== 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=CQKaNUnLIucKafeeoPkc/JJRL8af7D1Af/DQkJi/Aoo=; b=jg7L2nYiiOdOENG46I1j04LUR075M/byiGR3+04uNh8rF0hc5KLum3z+JtkwZ7BEaQ oDCWObMnCg8O1HOugsruYAyvamdwV/yOt0KoxRga2qjzm7OPYBolZg1eDEdHvTL/5X+C JGUsRzoaPqLDZzGrzz1SxddD9iDMht3Cb7jhG9SzQT+tRN25uYDdMobBu+JtGnb3Au4f c+p3vk+VMAiA3OZENFmSMyoPcnpArKTR6G4alH1kTK3x5jf4T0TNlJbD2e4pyM7u5nWE 4+OhvlGIzw3s3wcroW/w4xAuNAt+1M1SKUBtOVOqWqpxytIbpqN9G4bLtVF2sTv4wrGt O5GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XowKl4Kd; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i18si397642pfd.64.2019.06.12.10.58.57; Wed, 12 Jun 2019 10:59:11 -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=@gmail.com header.s=20161025 header.b=XowKl4Kd; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732411AbfFLNo7 (ORCPT + 99 others); Wed, 12 Jun 2019 09:44:59 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:33764 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728710AbfFLNo7 (ORCPT ); Wed, 12 Jun 2019 09:44:59 -0400 Received: by mail-wr1-f67.google.com with SMTP id n9so17032565wru.0 for ; Wed, 12 Jun 2019 06:44:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=CQKaNUnLIucKafeeoPkc/JJRL8af7D1Af/DQkJi/Aoo=; b=XowKl4Kd09YYo08R/kBpwc+m1HGn0FXQyhCkIIirTPUM/FUZ0tR6yYn/iiZgonpZFt hE5YSubBD+CsyLGQynk6CLKVY5r/jKdPJWnkarVgi9zExZpRn6O8Za/VtC6drM5x0lyR rSpy5Rv1h++k+zUO0+0so+WNpvldIwFx54r51S3161w2Z3O6uEeS57IfXSgTySWPHFwc dP1YbGrboihHucsIFmqye9kgrOKteOIlJkv3KTDtU3bUBP5A5XTh4dSv6OgCkAO7srIB Cii+KbxA6UFG3cSp2SPHVsqBT8quArXNZSW/F2vahuwrzXbekKpeiNjUHfeFadevEHv0 HoRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=CQKaNUnLIucKafeeoPkc/JJRL8af7D1Af/DQkJi/Aoo=; b=CYpDgZLHpSvF4Qbyy8Z77MYL9Vf8rApdXMqZ3CpBWsNDofWv2PJefXJVQZQ3ZACFi3 3Q9H6/WPmBGduj6A1o1kaWFZgo06TcHoUqMLzmpwiJ5IFcfMOUP+NsgMUQiEFBWmdD4r yq8qPFowL9+Dg9S17BzQ/Ymqga//1PIfkQH54agW92fBXzjiJEPklAyZXeRL7yGP7zk1 agIrUmU7UmyPIpaU4mVQ8Ar0chzStzli3pM1h3/ts8RxKF7XX8uEvJh8CP4EcXyF3k8a Cjp/r6imLYty72ooNf/15VXoy71NH4oEZzXiGdELINR38YYH20so+ICQXGmBvjlFQygu rBOg== X-Gm-Message-State: APjAAAWZpai4XCN6yR57kqqgpZLBXLbDJ+WQiFRnWDKsWT4ho5LFwOai 6ywyFnZYf1/ItWhGA3yPsv3jwRu/FIs= X-Received: by 2002:adf:9dcc:: with SMTP id q12mr4720477wre.93.1560347097577; Wed, 12 Jun 2019 06:44:57 -0700 (PDT) Received: from zhanggen-UX430UQ ([108.61.173.19]) by smtp.gmail.com with ESMTPSA id u11sm12745912wrn.1.2019.06.12.06.44.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Jun 2019 06:44:56 -0700 (PDT) Date: Wed, 12 Jun 2019 21:44:49 +0800 From: Gen Zhang To: Greg KH 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: <20190612134449.GA4015@zhanggen-UX430UQ> References: <20190612131506.GA3526@zhanggen-UX430UQ> <20190612133838.GA7748@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190612133838.GA7748@kroah.com> User-Agent: Mutt/1.5.24 (2015-08-30) 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 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"? > > That always goes below the --- line. And I can't see what goes wrong with "---". Could you please make some explaination? Thanks Gen > > v5 please. > > thanks, > > greg k-h