commit | 08dd61555acc3580098b0e2314e072de9ea3dfbb | [log] [tgz] |
---|---|---|
author | Vincent Stehlé <vincent.stehle@laposte.net> | Sun Feb 14 19:39:04 2021 +0100 |
committer | Tom Rini <trini@konsulko.com> | Wed Feb 24 16:51:48 2021 -0500 |
tree | 8c9a5d15891b3758212480bd9c0a655d91668b97 | |
parent | 0cbe9bebf69aa1ec81bd32bea974d92edb5f71f1 [diff] |
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: 8fb49b4c7a82 ("dm: Add a new uclass driver for VirtIO transport devices") Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net> Cc: Simon Glass <sjg@chromium.org> Cc: Bin Meng <bmeng.cn@gmail.com>