aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/fusion/mptbase.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/message/fusion/mptbase.c')
-rw-r--r--drivers/message/fusion/mptbase.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c
index 62cff5afc6bd..84eab28665f3 100644
--- a/drivers/message/fusion/mptbase.c
+++ b/drivers/message/fusion/mptbase.c
@@ -2079,7 +2079,7 @@ void
2079mpt_detach(struct pci_dev *pdev) 2079mpt_detach(struct pci_dev *pdev)
2080{ 2080{
2081 MPT_ADAPTER *ioc = pci_get_drvdata(pdev); 2081 MPT_ADAPTER *ioc = pci_get_drvdata(pdev);
2082 char pname[32]; 2082 char pname[64];
2083 u8 cb_idx; 2083 u8 cb_idx;
2084 unsigned long flags; 2084 unsigned long flags;
2085 struct workqueue_struct *wq; 2085 struct workqueue_struct *wq;
@@ -2100,11 +2100,11 @@ mpt_detach(struct pci_dev *pdev)
2100 spin_unlock_irqrestore(&ioc->fw_event_lock, flags); 2100 spin_unlock_irqrestore(&ioc->fw_event_lock, flags);
2101 destroy_workqueue(wq); 2101 destroy_workqueue(wq);
2102 2102
2103 sprintf(pname, MPT_PROCFS_MPTBASEDIR "/%s/summary", ioc->name); 2103 snprintf(pname, sizeof(pname), MPT_PROCFS_MPTBASEDIR "/%s/summary", ioc->name);
2104 remove_proc_entry(pname, NULL); 2104 remove_proc_entry(pname, NULL);
2105 sprintf(pname, MPT_PROCFS_MPTBASEDIR "/%s/info", ioc->name); 2105 snprintf(pname, sizeof(pname), MPT_PROCFS_MPTBASEDIR "/%s/info", ioc->name);
2106 remove_proc_entry(pname, NULL); 2106 remove_proc_entry(pname, NULL);
2107 sprintf(pname, MPT_PROCFS_MPTBASEDIR "/%s", ioc->name); 2107 snprintf(pname, sizeof(pname), MPT_PROCFS_MPTBASEDIR "/%s", ioc->name);
2108 remove_proc_entry(pname, NULL); 2108 remove_proc_entry(pname, NULL);
2109 2109
2110 /* call per device driver remove entry point */ 2110 /* call per device driver remove entry point */