]> git.baikalelectronics.ru Git - kernel.git/commit
tcmu: fix error return code in tcmu_configure_device()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 11 Jan 2018 11:12:25 +0000 (11:12 +0000)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 13 Jan 2018 05:17:35 +0000 (21:17 -0800)
commit48856390d1ece5c4dce054ca2fcf135996250c13
tree989e518115db338f69a1f71bbe0e1619f90bd50d
parent234dbfe6f71175630624612e6a7037d972a5eb3b
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: 4978252 ("tcmu: allow max block and global max blocks to be settable")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_user.c