]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/infiniband/hw/mlx4/mr.c
Merge branch 'x86/cpu' into x86/x2apic
[linux-2.6-omap-h63xx.git] / drivers / infiniband / hw / mlx4 / mr.c
index db2086faa4edd9680e872ce8a4d74200e1fe2b71..87f5c5a87b98fa499e55115db660c8e72dd56fd8 100644 (file)
@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2007 Cisco Systems, Inc. All rights reserved.
+ * Copyright (c) 2007, 2008 Mellanox Technologies. All rights reserved.
  *
  * This software is available to you under a choice of one of two
  * licenses.  You may choose to be licensed under the terms of the GNU
@@ -203,6 +204,8 @@ struct ib_mr *mlx4_ib_alloc_fast_reg_mr(struct ib_pd *pd,
        if (err)
                goto err_mr;
 
+       mr->ibmr.rkey = mr->ibmr.lkey = mr->mmr.key;
+
        return &mr->ibmr;
 
 err_mr: