Skip to content
Commit 553768d1 authored by Xiubo Li's avatar Xiubo Li Committed by Jens Axboe
Browse files

nbd: fix crash when the blksize is zero



This will allow the blksize to be set zero and then use 1024 as
default.

Reviewed-by: default avatarJosef Bacik <josef@toxicpanda.com>
Signed-off-by: default avatarXiubo Li <xiubli@redhat.com>
[fix to use goto out instead of return in genl_connect]
Signed-off-by: default avatarMike Christie <mchristi@redhat.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent b49773e7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment