]> git.karo-electronics.de Git - karo-tx-linux.git/commit
svcrpc: fix rare race on unix_domain creation
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 8 Mar 2011 03:50:47 +0000 (22:50 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 8 Mar 2011 16:51:29 +0000 (11:51 -0500)
commit8b3e07ac908d005bb791410f594cce8744f6806a
tree8b1d3cf7295110738dc8a59e3f44f443ded97859
parent5ece3cafbd88d4da5c734e1810c4a2e6474b57b2
svcrpc: fix rare race on unix_domain creation

Note that "new" here is not yet fully initialized; auth_domain_put
should be called only on auth_domains that have actually been added to
the hash.

Before this fix, two attempts to add the same domain at once could
cause the hlist_del in auth_domain_put to fail.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/svcauth_unix.c