From: Tom Tucker Date: Sun, 23 Nov 2008 15:58:08 +0000 (-0600) Subject: Add a reference to sunrpc in svc_addsock X-Git-Tag: v2.6.27.16~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a77565dbf90825655a46f2ead7e931716736033;p=pandora-kernel.git 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 Signed-off-by: J. Bruce Fields Tested-by: Jeff Moyer Cc: Neil Brown Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed