diff mbox series

proc: annotate close_pdeo() for sparse

Message ID 20200227201538.GA30462@avx2 (mailing list archive)
State New, archived
Headers show
Series proc: annotate close_pdeo() for sparse | expand

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(+)
diff mbox series

Patch

--- 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: