]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite46e19fcb39f3f14ab9385644495340b75823af8
treec3c230929666557c84969cc1dfae24c9bec45e81
parent0f416c4130ef9010147f8ac5f84d5c6c1019bf50
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: f1721f4f1c81 ("rxrpc: Add IPv6 support")
Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/peer_object.c