File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
drivers/platform/x86/intel/pmt Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 12
12
#include <linux/intel_vsec.h>
13
13
#include <linux/kernel.h>
14
14
#include <linux/module.h>
15
+ #include <linux/mutex.h>
15
16
#include <linux/pci.h>
16
17
#include <linux/slab.h>
17
18
#include <linux/uaccess.h>
@@ -262,8 +263,12 @@ static void pmt_crashlog_remove(struct auxiliary_device *auxdev)
262
263
struct pmt_crashlog_priv * priv = auxiliary_get_drvdata (auxdev );
263
264
int i ;
264
265
265
- for (i = 0 ; i < priv -> num_entries ; i ++ )
266
- intel_pmt_dev_destroy (& priv -> entry [i ].entry , & pmt_crashlog_ns );
266
+ for (i = 0 ; i < priv -> num_entries ; i ++ ) {
267
+ struct crashlog_entry * crashlog = & priv -> entry [i ];
268
+
269
+ intel_pmt_dev_destroy (& crashlog -> entry , & pmt_crashlog_ns );
270
+ mutex_destroy (& crashlog -> control_mutex );
271
+ }
267
272
}
268
273
269
274
static int pmt_crashlog_probe (struct auxiliary_device * auxdev ,
You can’t perform that action at this time.
0 commit comments