OSDN Git Service

qemu-io-cmds: assert that we don't have .perm requested in no-blk case
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Wed, 19 May 2021 09:05:32 +0000 (12:05 +0300)
committerKevin Wolf <kwolf@redhat.com>
Wed, 2 Jun 2021 12:23:20 +0000 (14:23 +0200)
commit8eaf10187a2fd25aa27cb81b602815b07f9a7f89
treecbb88a71fe34a904f0f63dd7bb80f3c8b3503c0d
parent5529b02da2dcd1ef6bc6cd42d4fbfb537fe2276f
qemu-io-cmds: assert that we don't have .perm requested in no-blk case

Coverity thinks blk may be NULL. It's a false-positive, as described in
a new comment.

Fixes: Coverity CID 1453194
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20210519090532.3753-1-vsementsov@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-io-cmds.c