diff options
-rw-r--r-- | drivers/target/iscsi/iscsi_target_configfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/iscsi/iscsi_target_configfs.c b/drivers/target/iscsi/iscsi_target_configfs.c index 8d8b3ff68490..421344da8b51 100644 --- a/drivers/target/iscsi/iscsi_target_configfs.c +++ b/drivers/target/iscsi/iscsi_target_configfs.c | |||
@@ -474,7 +474,7 @@ static ssize_t __iscsi_##prefix##_store_##name( \ | |||
474 | if (!capable(CAP_SYS_ADMIN)) \ | 474 | if (!capable(CAP_SYS_ADMIN)) \ |
475 | return -EPERM; \ | 475 | return -EPERM; \ |
476 | \ | 476 | \ |
477 | snprintf(auth->name, PAGE_SIZE, "%s", page); \ | 477 | snprintf(auth->name, sizeof(auth->name), "%s", page); \ |
478 | if (!strncmp("NULL", auth->name, 4)) \ | 478 | if (!strncmp("NULL", auth->name, 4)) \ |
479 | auth->naf_flags &= ~flags; \ | 479 | auth->naf_flags &= ~flags; \ |
480 | else \ | 480 | else \ |