diff options
Diffstat (limited to 'drivers/target/iscsi/iscsi_target_parameters.c')
-rw-r--r-- | drivers/target/iscsi/iscsi_target_parameters.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/iscsi/iscsi_target_parameters.c b/drivers/target/iscsi/iscsi_target_parameters.c index ed5241e7f12a..0c4760fabfc0 100644 --- a/drivers/target/iscsi/iscsi_target_parameters.c +++ b/drivers/target/iscsi/iscsi_target_parameters.c | |||
@@ -681,7 +681,7 @@ int iscsi_update_param_value(struct iscsi_param *param, char *value) | |||
681 | param->value = kzalloc(strlen(value) + 1, GFP_KERNEL); | 681 | param->value = kzalloc(strlen(value) + 1, GFP_KERNEL); |
682 | if (!param->value) { | 682 | if (!param->value) { |
683 | pr_err("Unable to allocate memory for value.\n"); | 683 | pr_err("Unable to allocate memory for value.\n"); |
684 | return -1; | 684 | return -ENOMEM; |
685 | } | 685 | } |
686 | 686 | ||
687 | memcpy(param->value, value, strlen(value)); | 687 | memcpy(param->value, value, strlen(value)); |