diff mbox

link-local address fix for rdma_resolve_addr

Message ID 20091019234329.GC9643@obsidianresearch.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Jason Gunthorpe Oct. 19, 2009, 11:43 p.m. UTC
None
diff mbox

Patch

--- a/drivers/infiniband/core/addr.c
+++ b/drivers/infiniband/core/addr.c
@@ -393,7 +393,7 @@  static int addr_resolve_local(struct sockaddr *src_in,
 
                for_each_netdev(&init_net, dev)
                        if (ipv6_chk_addr(&init_net,
-                                         &((struct sockaddr_in6 *) addr)->sin6_addr,
+                                         &((struct sockaddr_in6 *) dst_in)->sin6_addr,
                                          dev, 1))
                                break;