diff options
Diffstat (limited to 'drivers/scsi/lpfc')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_debugfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_debugfs.c b/drivers/scsi/lpfc/lpfc_debugfs.c index ffe82d169b40..30b25c5fdd7e 100644 --- a/drivers/scsi/lpfc/lpfc_debugfs.c +++ b/drivers/scsi/lpfc/lpfc_debugfs.c | |||
@@ -1147,7 +1147,8 @@ static int lpfc_idiag_cmd_get(const char __user *buf, size_t nbytes, | |||
1147 | { | 1147 | { |
1148 | char mybuf[64]; | 1148 | char mybuf[64]; |
1149 | char *pbuf, *step_str; | 1149 | char *pbuf, *step_str; |
1150 | int bsize, i; | 1150 | int i; |
1151 | size_t bsize; | ||
1151 | 1152 | ||
1152 | /* Protect copy from user */ | 1153 | /* Protect copy from user */ |
1153 | if (!access_ok(VERIFY_READ, buf, nbytes)) | 1154 | if (!access_ok(VERIFY_READ, buf, nbytes)) |