diff options
author | Tom Tucker <tom@opengridcomputing.com> | 2008-11-23 09:58:08 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-02-12 09:31:11 -0800 |
commit | 2a77565dbf90825655a46f2ead7e931716736033 (patch) | |
tree | 95094924029424f4b611be86acbc710e5dd330a3 /mm/swap.c | |
parent | 30ecc5ae32b59477fd2b8d500a74458b36e8cfba (diff) |
Add a reference to sunrpc in svc_addsock
commit 2da2c21d7508d34bc6d600df665d84871b65d2b9 upstream.
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>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'mm/swap.c')
0 files changed, 0 insertions, 0 deletions