projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd4e139
)
target: Indicate success if writing 0 to pi_prot_type
author
Andy Grover
<
[email protected]
>
Thu, 9 Jul 2015 16:56:47 +0000
(09:56 -0700)
committer
Nicholas Bellinger
<
[email protected]
>
Fri, 24 Jul 2015 06:39:59 +0000
(23:39 -0700)
See https://bugzilla.redhat.com/show_bug.cgi?id=
1240687
Returning 0 from a configfs store function results in infinite retries.
Reported-by: Yanko Kaneti <
[email protected]
>
Signed-off-by: Andy Grover <
[email protected]
>
Signed-off-by: Nicholas Bellinger <
[email protected]
>
drivers/target/target_core_configfs.c
patch
|
blob
|
history
diff --git
a/drivers/target/target_core_configfs.c
b/drivers/target/target_core_configfs.c
index 0b0de36474784987c781906243eabbed27ecab00..cb09e6988b568e334342a4edb09b9d07addc9942 100644
(file)
--- a/
drivers/target/target_core_configfs.c
+++ b/
drivers/target/target_core_configfs.c
@@
-747,7
+747,7
@@
static ssize_t store_pi_prot_type(struct se_dev_attrib *da,
if (!dev->transport->init_prot || !dev->transport->free_prot) {
/* 0 is only allowed value for non-supporting backends */
if (flag == 0)
- return
0
;
+ return
count
;
pr_err("DIF protection not supported by backend: %s\n",
dev->transport->name);