]> git.baikalelectronics.ru Git - kernel.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)
commit02ca62edd536df4470c97346f30a710cd0aa8e7e
tree8b1d3cf7295110738dc8a59e3f44f443ded97859
parent0c5a27d2caf25fce4643d580336792d8a776152a
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