Skip to content
Commit 25d34b93 authored by Vincent Stehlé's avatar Vincent Stehlé Committed by Tom Rini
Browse files

virtio: fix off by one device id comparison



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: 8fb49b4c ("dm: Add a new uclass driver for VirtIO transport devices")
Signed-off-by: default avatarVincent Stehlé <vincent.stehle@laposte.net>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
parent e420a38f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment