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