proc: annotate close_pdeo() for sparse
diff mbox series

Message ID 20200227201538.GA30462@avx2
State Accepted
Commit 904f394e2e9fd362dc78d58646b85c4cf6c87cac
Headers show
Series
  • proc: annotate close_pdeo() for sparse
Related show

Commit Message

Alexey Dobriyan Feb. 27, 2020, 8:15 p.m. UTC
From: Jules Irenge <jbi.octave@gmail.com>

Fix sparse locking imbalance warning:

	warning: context imbalance in close_pdeo() - unexpected unlock

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 fs/proc/inode.c | 1 +
 1 file changed, 1 insertion(+)

Patch
diff mbox series

--- a/fs/proc/inode.c
+++ b/fs/proc/inode.c
@@ -139,6 +139,7 @@  static void unuse_pde(struct proc_dir_entry *pde)
 
 /* pde is locked on entry, unlocked on exit */
 static void close_pdeo(struct proc_dir_entry *pde, struct pde_opener *pdeo)
+	__releases(&pde->pde_unload_lock)
 {
 	/*
 	 * close() (proc_reg_release()) can't delete an entry and proceed: