mlx4_core: Don't read reserved fields in mlx4_QUERY_ADAPTER()
[linux-block.git] / drivers / infiniband / hw / mlx4 / main.c
index d8287d9db41e5a8eb0bb3167db75635c266b4960..d2f50b62fcb6ff7a44786967dc5758ae956285fd 100644 (file)
@@ -468,6 +468,7 @@ static int init_node_data(struct mlx4_ib_dev *dev)
        if (err)
                goto out;
 
+       dev->dev->rev_id = be32_to_cpup((__be32 *) (out_mad->data + 32));
        memcpy(&dev->ib_dev.node_guid, out_mad->data + 12, 8);
 
 out: