[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YJjO3n6jWYDoYPAo@infradead.org>
Date: Mon, 10 May 2021 07:12:46 +0100
From: Christoph Hellwig <hch@...radead.org>
To: Alex Williamson <alex.williamson@...hat.com>
Cc: tkffaul@...look.com, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] vfio/pci: Sanity check IGD OpRegion Size
On Fri, May 07, 2021 at 12:53:17PM -0600, Alex Williamson wrote:
> + /*
> + * The OpRegion size field is specified as size in KB, but there have been
> + * user reports where this field appears to report size in bytes. If we
> + * read 8192, assume this is the case.
> + */
Please avoid pointlesly spilling the comment line over 80 chars.
> + if (size == OPREGION_SIZE)
Shouldn't this be a range tests, i.e. >= ?
Powered by blists - more mailing lists