
< 	if (rt != net->ipv6.ip6_null_entry) {
---
> 	if (net && rt != net->ipv6.ip6_null_entry) {
