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