Skip to content

Commit

Permalink
fs/proc/inode.c: annotate close_pdeo() for sparse
Browse files Browse the repository at this point in the history
Fix sparse locking imbalance warning:

	warning: context imbalance in close_pdeo() - unexpected unlock

Signed-off-by: Jules Irenge <[email protected]>
Signed-off-by: Alexey Dobriyan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Link: http://lkml.kernel.org/r/20200227201538.GA30462@avx2
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
irenge authored and torvalds committed Apr 7, 2020
1 parent 6218d74 commit 904f394
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/proc/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,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:
Expand Down

0 comments on commit 904f394

Please sign in to comment.