summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVincent StehlĂ© <[email protected]>2021-02-14 19:39:04 +0100
committerTom Rini <[email protected]>2021-02-24 16:51:48 -0500
commit25d34b936cef12cf8b481b64fe9d02c08df12908 (patch)
tree8c9a5d15891b3758212480bd9c0a655d91668b97 /lib
parente420a38fa69b2d528466a4b6d40deb1fb58ea352 (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Ă© <[email protected]> Cc: Simon Glass <[email protected]> Cc: Bin Meng <[email protected]>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions