net: ipv4: tcp: Fix crash in tcp_nuke_addr

ip_route_output_key can return an ERR_PTR, don't dereference it.

Change-Id: I6b86a451b2bdb33873d79b3cf90c11dbe72bc081
Signed-off-by: Colin Cross <ccross@android.com>
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index d99fd5c..0387db5 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -3334,7 +3334,7 @@
 	struct rtable *rt;
 	struct flowi4 fl4 = { .daddr = addr };
 	rt = ip_route_output_key(net, &fl4);
-	if (!rt)
+	if (IS_ERR_OR_NULL(rt))
 		return 0;
 	return rt->dst.dev && (rt->dst.dev->flags & IFF_LOOPBACK);
 }