diff options
author | Gollu Appalanaidu <anaidu.gollu@samsung.com> | 2020-10-22 14:37:08 +0530 |
---|---|---|
committer | Klaus Jensen <k.jensen@samsung.com> | 2020-10-27 11:29:25 +0100 |
commit | 843c8f91a7ad63f8f3e4e564d3f41f3d030ab8a9 (patch) | |
tree | 2bf77d39d0e912e21debee805fd2141691e62d47 /include | |
parent | 482e97fcfad6672d2849f2fe36bd460d70468b0a (diff) | |
download | qemu-843c8f91a7ad63f8f3e4e564d3f41f3d030ab8a9.zip qemu-843c8f91a7ad63f8f3e4e564d3f41f3d030ab8a9.tar.gz qemu-843c8f91a7ad63f8f3e4e564d3f41f3d030ab8a9.tar.bz2 |
hw/block/nvme: fix queue identifer validation
The nvme_check_{sq,cq} functions check if the given queue identifer is
valid *and* that the queue exists. Thus, the function return value
cannot simply be inverted to check if the identifer is valid and that
the queue does *not* exist.
Replace the call with an OR'ed version of the checks.
Signed-off-by: Gollu Appalanaidu <anaidu.gollu@samsung.com>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions