]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
target: Fix incorrect unmap_zeroes_data_store return
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 11 Feb 2016 04:34:56 +0000 (20:34 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 11 Feb 2016 04:34:56 +0000 (20:34 -0800)
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>
drivers/target/target_core_configfs.c

index 3327c49674d37d1a362f706eb30d55d7128d60a5..713c63d9681b3cf4e413cb50f93cd466adb8520c 100644 (file)
@@ -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;
 }
 
 /*