Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
[linux-2.6-block.git] / drivers / scsi / lpfc / lpfc_debugfs.c
index 4daae90e0c99b4a05d1187ef15aafe201700e45f..ae0a8252128c954b6b6eb4d658c2d2f7bcbf7f61 100644 (file)
@@ -2429,7 +2429,8 @@ lpfc_debugfs_dif_err_write(struct file *file, const char __user *buf,
                return 0;
 
        if (dent == phba->debug_InjErrLBA) {
-               if ((buf[0] == 'o') && (buf[1] == 'f') && (buf[2] == 'f'))
+               if ((dstbuf[0] == 'o') && (dstbuf[1] == 'f') &&
+                   (dstbuf[2] == 'f'))
                        tmp = (uint64_t)(-1);
        }