rxrpc: Fix checking of error from ip6_route_output()
authorDavid Howells <dhowells@redhat.com>
Thu, 13 Oct 2016 07:43:17 +0000 (08:43 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 13 Oct 2016 07:43:17 +0000 (08:43 +0100)
commit07096f612fdf2bb5578cd1fecb2884bdbb1cde42
treec3c230929666557c84969cc1dfae24c9bec45e81
parent54fde4234579d3b1311b3ed1a1e95526a7cfdcd7
rxrpc: Fix checking of error from ip6_route_output()

ip6_route_output() doesn't return a negative error when it fails, rather
the ->error field of the returned dst_entry struct needs to be checked.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 75b54cb57ca3 ("rxrpc: Add IPv6 support")
Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/peer_object.c