[openib-general] [PATCH] GSI: Fix addr_hdnl_attr initialization in gsi_post_send_mad
Hal Rosenstock
halr at voltaire.com
Tue Aug 3 20:41:06 PDT 2004
Fix addr_hdnl_attr initialization in gsi_post_send_mad
Index: gsi_main.c
===================================================================
--- gsi_main.c (revision 572)
+++ gsi_main.c (working copy)
@@ -1851,7 +1851,6 @@
{
struct ib_ah_attr addr_vec;
struct ib_ah *addr_hndl;
- struct ib_ah_attr addr_hndl_attr;
u32 rkey;
struct ib_send_wr wr;
struct ib_send_wr *bad_wr;
@@ -1871,7 +1870,7 @@
goto error1;
}
#else
- addr_hndl = ib_create_ah(hca->pd, &addr_hndl_attr);
+ addr_hndl = ib_create_ah(hca->pd, &addr_vec);
if (IS_ERR(addr_hndl)) {
printk(KERN_ERR "Could not create address handle\n");
ret = PTR_ERR(addr_hndl);
@@ -1984,7 +1983,6 @@
{
struct ib_ah_attr addr_vec;
struct ib_ah *addr_hndl;
- struct ib_ah_attr addr_hndl_attr;
u32 rkey;
struct ib_send_wr wr;
struct ib_send_wr *bad_wr;
@@ -2014,7 +2012,7 @@
goto error1;
}
#else
- addr_hndl = ib_create_ah(hca->pd, &addr_hndl_attr);
+ addr_hndl = ib_create_ah(hca->pd, &addr_vec);
if (IS_ERR(addr_hndl)) {
printk(KERN_ERR "Could not create address handle\n");
ret = PTR_ERR(addr_hndl);
More information about the general
mailing list