nbd: partition nbd_read_stat() into nbd_read_reply() and nbd_handle_reply()
authorYu Kuai <yukuai3@huawei.com>
Thu, 16 Sep 2021 09:33:49 +0000 (17:33 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 20:50:37 +0000 (14:50 -0600)
commit3fe1db626a56cdf259c348404f2c5429e2f065a1
tree2d23ab68e8cae7b380d666c0c8ab53e59df91539
parentf52c0e08237e7864a44311fc78bc9bf2e045611b
nbd: partition nbd_read_stat() into nbd_read_reply() and nbd_handle_reply()

Prepare to fix uaf in nbd_read_stat(), no functional changes.

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Link: https://lore.kernel.org/r/20210916093350.1410403-7-yukuai3@huawei.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/nbd.c