Skip to content
Commit a24e7917 authored by Wei Yongjun's avatar Wei Yongjun Committed by Nicholas Bellinger
Browse files

tcmu: fix error return code in tcmu_configure_device()



Fix to return error code -ENOMEM from the kzalloc() error handling
case instead of 0, as done elsewhere in this function.

Fixes: 80eb8761 ("tcmu: allow max block and global max blocks to be settable")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Acked-by: default avatarMike Christie <mchristi@redhat.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 88cf1073
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment