summaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2016-02-11 05:34:56 +0100
committerNicholas Bellinger <nab@linux-iscsi.org>2016-02-11 05:34:56 +0100
commit2e498f25b0daa9dec761e3e880024ff7417f2445 (patch)
tree217d8ab0e90e90a8f3adb65f795722d4325aec50 /drivers/target
parentqla2xxx: Use ATIO type to send correct tmr response (diff)
downloadlinux-2e498f25b0daa9dec761e3e880024ff7417f2445.tar.xz
linux-2e498f25b0daa9dec761e3e880024ff7417f2445.zip
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 <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/target_core_configfs.c2
1 files changed, 1 insertions, 1 deletions
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;
}
/*