]> www.infradead.org Git - nvme.git/commit
selftests: ublk: fix ublk_find_tgt()
authorMing Lei <ming.lei@redhat.com>
Sat, 12 Apr 2025 02:30:17 +0000 (10:30 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 17 Apr 2025 01:32:18 +0000 (19:32 -0600)
commitec120093180b9d92b0c84cb89a205876f9a4cb40
tree4c149c56b39b88efa7fe0c5b74bbc451aeec93df
parent39e160505198ff8c158f11bce2ba19809a756e8b
selftests: ublk: fix ublk_find_tgt()

Bounds check for iterator variable `i` is missed, so add it and fix
ublk_find_tgt().

Cc: Johannes Thumshirn <Johannes.Thumshirn@wdc.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250412023035.2649275-2-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
tools/testing/selftests/ublk/kublk.c
tools/testing/selftests/ublk/kublk.h