]> 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)
commit0d52227334e96c83178f416ba4be74512f238167
treec3c230929666557c84969cc1dfae24c9bec45e81
parente1af4f47edce1536bcdc276e91029db7a31b898e
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: eb3e4e38acbf ("rxrpc: Add IPv6 support")
Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/peer_object.c