]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Fix server->active leak in afs_put_server
authorMarc Dionne <marc.dionne@auristor.com>
Wed, 30 Nov 2022 17:55:51 +0000 (17:55 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Nov 2022 18:02:37 +0000 (10:02 -0800)
commit62686d1a4cd65495b8d97b7291f9403c5a4c7c66
treea1997480de0c6f5647cc2601f0756afd954b603e
parent550c0f615f5c23d1f37e2741b6bbe66c02001c43
afs: Fix server->active leak in afs_put_server

The atomic_read was accidentally replaced with atomic_inc_return,
which prevents the server from getting cleaned up and causes rmmod
to hang with a warning:

    Can't purge s=00000001

Fixes: 87685bb23bd6 ("afs: Fix access after dec in put functions")
Signed-off-by: Marc Dionne <marc.dionne@auristor.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/r/20221130174053.2665818-1-marc.dionne@auristor.com/
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/afs/server.c