From: Nicholas Bellinger Date: Thu, 11 Feb 2016 04:34:56 +0000 (-0800) Subject: target: Fix incorrect unmap_zeroes_data_store return X-Git-Tag: Ubuntu-5.2.0-15.16~9789^2~2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=2e498f25b0daa9dec761e3e880024ff7417f2445;p=mirror_ubuntu-eoan-kernel.git target: Fix incorrect unmap_zeroes_data_store return This patch fixes an incorrect return of zero from the new unmap_zeroes_data_store() configfs store attribute handler introduced in v4.5-rc1, to use the correct 'count' bytes return value. Signed-off-by: Nicholas Bellinger --- diff --git a/drivers/target/target_core_configfs.c b/drivers/target/target_core_configfs.c index 3327c49674d3..713c63d9681b 100644 --- a/drivers/target/target_core_configfs.c +++ b/drivers/target/target_core_configfs.c @@ -898,7 +898,7 @@ static ssize_t unmap_zeroes_data_store(struct config_item *item, da->unmap_zeroes_data = flag; pr_debug("dev[%p]: SE Device Thin Provisioning LBPRZ bit: %d\n", da->da_dev, flag); - return 0; + return count; } /*