
< 	rpc_proc_register(net, &nn->rpcstats);
---
> 	if (nn != NULL) {
> 		rpc_proc_register(net, &nn->rpcstats);
> 	} else {
> 		return -EINVAL;
> 	}
