Commit 22c78c81 authored by Yu Kuai's avatar Yu Kuai Committed by Yang Yingliang
Browse files

nbd: check sock index in nbd_read_stat()



mainline inclusion
from mainline-next-20211018
commit dbd73178da676945d8bbcf6afe731623f683ce0a
category: bugfix
bugzilla: 49890
CVE: NA
---------------------------

The sock that clent send request in nbd_send_cmd() and receive reply
in nbd_read_stat() should be the same.

Signed-off-by: default avatarYu Kuai <yukuai3@huawei.com>
Reviewed-by: default avatarMing Lei <ming.lei@redhat.com>
Reviewed-by: default avatarJosef Bacik <josef@toxicpanda.com>
Link: https://lore.kernel.org/r/20210916093350.1410403-4-yukuai3@huawei.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Reviewed-by: default avatarJason Yan <yanaijie@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent b957ac08
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment