aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_debugfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_debugfs.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_debugfs.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/scsi/lpfc/lpfc_debugfs.c b/drivers/scsi/lpfc/lpfc_debugfs.c
index 2e3c01bebed6..149fdd25f8e8 100644
--- a/drivers/scsi/lpfc/lpfc_debugfs.c
+++ b/drivers/scsi/lpfc/lpfc_debugfs.c
@@ -43,7 +43,6 @@
43#include "lpfc_crtn.h" 43#include "lpfc_crtn.h"
44#include "lpfc_vport.h" 44#include "lpfc_vport.h"
45#include "lpfc_version.h" 45#include "lpfc_version.h"
46#include "lpfc_vport.h"
47#include "lpfc_debugfs.h" 46#include "lpfc_debugfs.h"
48 47
49#ifdef CONFIG_LPFC_DEBUG_FS 48#ifdef CONFIG_LPFC_DEBUG_FS
@@ -902,7 +901,7 @@ lpfc_debugfs_initialize(struct lpfc_vport *vport)
902 } 901 }
903 } 902 }
904 903
905 vport->disc_trc = kmalloc( 904 vport->disc_trc = kmzlloc(
906 (sizeof(struct lpfc_debugfs_trc) * lpfc_debugfs_max_disc_trc), 905 (sizeof(struct lpfc_debugfs_trc) * lpfc_debugfs_max_disc_trc),
907 GFP_KERNEL); 906 GFP_KERNEL);
908 907
@@ -913,8 +912,6 @@ lpfc_debugfs_initialize(struct lpfc_vport *vport)
913 goto debug_failed; 912 goto debug_failed;
914 } 913 }
915 atomic_set(&vport->disc_trc_cnt, 0); 914 atomic_set(&vport->disc_trc_cnt, 0);
916 memset(vport->disc_trc, 0,
917 (sizeof(struct lpfc_debugfs_trc) * lpfc_debugfs_max_disc_trc));
918 915
919 snprintf(name, sizeof(name), "discovery_trace"); 916 snprintf(name, sizeof(name), "discovery_trace");
920 vport->debug_disc_trc = 917 vport->debug_disc_trc =