From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wang YanQing Subject: Re: [PATCH 2/3] x86/sysfb_efi: Fix valid BAR address range check Date: Wed, 4 May 2016 23:43:47 +0800 Message-ID: <20160504154344.GA3146@udknight> References: <1462303781-8686-1-git-send-email-matt@codeblueprint.co.uk> <1462303781-8686-3-git-send-email-matt@codeblueprint.co.uk> <20160504063524.GB12846@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20160504063524.GB12846-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Sender: linux-efi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Ingo Molnar Cc: Matt Fleming , Thomas Gleixner , "H . Peter Anvin" , Ard Biesheuvel , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, David Herrmann , Peter Jones , stable-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Tomi Valkeinen List-Id: linux-efi@vger.kernel.org On Wed, May 04, 2016 at 08:35:24AM +0200, Ingo Molnar wrote: > > * Matt Fleming wrote: > > > From: Wang YanQing > > > > We can't just break out when meet start is equal to zero, > > Hm, wot? > > Thanks, > > Ingo Sorry for my poor English ,and poor commit message, this bring trouble for more than one maintainer, I guess. The old code use below comparion as condition to terminate valid range check without care whether there are more ranges in later BARs: " if (start == 0) break; " I guess original author think (or make a mistake) when we meet a address range begin from zero means it is a invalid address range, and no valid address ranges in remain BARs. So I said: We can't break the loop when meet range whose start address is zero, without check it and remaining BARs' range. Thanks.