From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Thu, 25 Feb 2021 08:25:59 -0500 Subject: [PATCH] virtio: fix off by one device id comparison In-Reply-To: <20210214183904.5432-1-vincent.stehle@laposte.net> References: <20210214183904.5432-1-vincent.stehle@laposte.net> Message-ID: <20210225132559.GD10169@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Feb 14, 2021 at 07:39:04PM +0100, Vincent Stehl? wrote: > VIRTIO_ID_MAX_NUM is the largest device ID plus 1. Therefore a device id > cannot be greater or equal to VIRTIO_ID_MAX_NUM. Fix the comparison > accordingly. > > Fixes: 8fb49b4c7a82 ("dm: Add a new uclass driver for VirtIO transport devices") > Signed-off-by: Vincent Stehl? > Cc: Simon Glass > Cc: Bin Meng Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: