File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -69,10 +69,10 @@ static void pstore_dowork(struct work_struct *);
69
69
static DECLARE_WORK (pstore_work , pstore_dowork ) ;
70
70
71
71
/*
72
- * pstore_lock just protects "psinfo" during
72
+ * psinfo_lock just protects "psinfo" during
73
73
* calls to pstore_register()
74
74
*/
75
- static DEFINE_SPINLOCK (pstore_lock );
75
+ static DEFINE_SPINLOCK (psinfo_lock );
76
76
struct pstore_info * psinfo ;
77
77
78
78
static char * backend ;
@@ -574,11 +574,11 @@ int pstore_register(struct pstore_info *psi)
574
574
return - EINVAL ;
575
575
}
576
576
577
- spin_lock (& pstore_lock );
577
+ spin_lock (& psinfo_lock );
578
578
if (psinfo ) {
579
579
pr_warn ("backend '%s' already loaded: ignoring '%s'\n" ,
580
580
psinfo -> name , psi -> name );
581
- spin_unlock (& pstore_lock );
581
+ spin_unlock (& psinfo_lock );
582
582
return - EBUSY ;
583
583
}
584
584
@@ -587,7 +587,7 @@ int pstore_register(struct pstore_info *psi)
587
587
psinfo = psi ;
588
588
mutex_init (& psinfo -> read_mutex );
589
589
sema_init (& psinfo -> buf_lock , 1 );
590
- spin_unlock (& pstore_lock );
590
+ spin_unlock (& psinfo_lock );
591
591
592
592
593
593
if (psi -> flags & PSTORE_FLAGS_DMESG )
You can’t perform that action at this time.
0 commit comments