summaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2016-02-10 20:34:56 -0800
committerNicholas Bellinger <nab@linux-iscsi.org>2016-02-10 20:34:56 -0800
commit2e498f25b0daa9dec761e3e880024ff7417f2445 (patch)
tree217d8ab0e90e90a8f3adb65f795722d4325aec50 /drivers/target
parentd7236ac368212bd6fc8b45f050136ee53e6a6f2d (diff)
downloadtalos-obmc-linux-2e498f25b0daa9dec761e3e880024ff7417f2445.tar.gz
talos-obmc-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;
}
/*
OpenPOWER on IntegriCloud