]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Add a reference to sunrpc in svc_addsock
authorTom Tucker <tom@opengridcomputing.com>
Sun, 23 Nov 2008 15:58:08 +0000 (09:58 -0600)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Mon, 24 Nov 2008 16:15:01 +0000 (10:15 -0600)
commit2da2c21d7508d34bc6d600df665d84871b65d2b9
treeaac096017d62589c3675d44ffff61dc1676fa9d1
parent2c5e76158fcea6e3b9536a74efa7b5e2e846d374
Add a reference to sunrpc in svc_addsock

The svc_addsock function adds transport instances without taking a
reference on the sunrpc.ko module, however, the generic transport
destruction code drops a reference when a transport instance
is destroyed.

Add a try_module_get call to the svc_addsock function for transport
instances added by this function.

Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Tested-by: Jeff Moyer <jmoyer@redhat.com>
net/sunrpc/svcsock.c