diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/target/target_core_transport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index 98044bf1da08..63d7848bf96c 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c | |||
@@ -2127,7 +2127,7 @@ transport_generic_new_cmd(struct se_cmd *cmd) | |||
2127 | /* fabric drivers should only return -EAGAIN or -ENOMEM as error */ | 2127 | /* fabric drivers should only return -EAGAIN or -ENOMEM as error */ |
2128 | WARN_ON(ret); | 2128 | WARN_ON(ret); |
2129 | 2129 | ||
2130 | return 0; | 2130 | return (!ret) ? 0 : TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE; |
2131 | 2131 | ||
2132 | queue_full: | 2132 | queue_full: |
2133 | pr_debug("Handling write_pending QUEUE__FULL: se_cmd: %p\n", cmd); | 2133 | pr_debug("Handling write_pending QUEUE__FULL: se_cmd: %p\n", cmd); |