Skip to content

Commit cbcaf28

Browse files
pgerumgyohng
authored andcommitted
evl/poll: lockdep: delete group mutex at release
With dynamic lock classes enabled for mutexes, we have to destroy the latter thoroughly after usage so that classes are removed. Otherwise, lockdep may complain loudly about registering classes twice. Signed-off-by: Philippe Gerum <[email protected]>
1 parent 260a127 commit cbcaf28

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/evl/poll.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,7 @@ static int poll_release(struct inode *inode, struct file *filp)
653653
evl_schedule();
654654

655655
flush_items(group);
656+
evl_destroy_kmutex(&group->item_lock);
656657
evl_release_file(&group->efile);
657658
kfree(group);
658659

0 commit comments

Comments
 (0)