Commit 7dcc683
scsi: lpfc: Fix the NULL vs IS_ERR() bug for debugfs_create_file()
Since debugfs_create_file() returns ERR_PTR and never NULL, use IS_ERR() to
check the return value.
Fixes: 2fcbc56 ("scsi: lpfc: Make debugfs ktime stats generic for NVME and SCSI")
Fixes: 4c47efc ("scsi: lpfc: Move SCSI and NVME Stats to hardware queue structures")
Fixes: 6a828b0 ("scsi: lpfc: Support non-uniform allocation of MSIX vectors to hardware queues")
Fixes: 95bfc6d ("scsi: lpfc: Make FW logging dynamically configurable")
Fixes: 9f77870 ("scsi: lpfc: Add debugfs support for cm framework buffers")
Fixes: c490850 ("scsi: lpfc: Adapt partitioned XRI lists to efficient sharing")
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20230906030809.2847970-1-ruanjinjie@huawei.com
Reviewed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent d14e3e5 commit 7dcc683
1 file changed
+7
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6073 | 6073 | | |
6074 | 6074 | | |
6075 | 6075 | | |
6076 | | - | |
| 6076 | + | |
6077 | 6077 | | |
6078 | 6078 | | |
6079 | 6079 | | |
| |||
6085 | 6085 | | |
6086 | 6086 | | |
6087 | 6087 | | |
6088 | | - | |
| 6088 | + | |
6089 | 6089 | | |
6090 | 6090 | | |
6091 | 6091 | | |
| |||
6098 | 6098 | | |
6099 | 6099 | | |
6100 | 6100 | | |
6101 | | - | |
| 6101 | + | |
6102 | 6102 | | |
6103 | 6103 | | |
6104 | 6104 | | |
| |||
6111 | 6111 | | |
6112 | 6112 | | |
6113 | 6113 | | |
6114 | | - | |
| 6114 | + | |
6115 | 6115 | | |
6116 | 6116 | | |
6117 | 6117 | | |
| |||
6132 | 6132 | | |
6133 | 6133 | | |
6134 | 6134 | | |
6135 | | - | |
| 6135 | + | |
6136 | 6136 | | |
6137 | 6137 | | |
6138 | 6138 | | |
| |||
6358 | 6358 | | |
6359 | 6359 | | |
6360 | 6360 | | |
6361 | | - | |
| 6361 | + | |
6362 | 6362 | | |
6363 | 6363 | | |
6364 | 6364 | | |
| |||
6369 | 6369 | | |
6370 | 6370 | | |
6371 | 6371 | | |
6372 | | - | |
| 6372 | + | |
6373 | 6373 | | |
6374 | 6374 | | |
6375 | 6375 | | |
| |||
0 commit comments