
<     if (IS_ERR(rt))
<         goto out;
<     if (rt->rt_uses_gateway && rt->rt_gw_family != AF_INET)
<         goto out;
---
>     if (IS_ERR(rt))
>         goto out;
>     if (rt == NULL)
>         return -ENOENT;
>     if (rt->rt_uses_gateway && rt->rt_gw_family != AF_INET)
>         goto out;
