diff options
Diffstat (limited to 'drivers/infiniband/core/cm.c')
-rw-r--r-- | drivers/infiniband/core/cm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c index d35c2ded6cbd..53661f34a326 100644 --- a/drivers/infiniband/core/cm.c +++ b/drivers/infiniband/core/cm.c | |||
@@ -1404,7 +1404,7 @@ static void cm_format_paths_from_req(struct cm_req_msg *req_msg, | |||
1404 | struct ib_sa_path_rec *primary_path, | 1404 | struct ib_sa_path_rec *primary_path, |
1405 | struct ib_sa_path_rec *alt_path) | 1405 | struct ib_sa_path_rec *alt_path) |
1406 | { | 1406 | { |
1407 | memset(primary_path, 0, sizeof *primary_path); | 1407 | memset(primary_path, 0, sizeof(*primary_path)); |
1408 | primary_path->dgid = req_msg->primary_local_gid; | 1408 | primary_path->dgid = req_msg->primary_local_gid; |
1409 | primary_path->sgid = req_msg->primary_remote_gid; | 1409 | primary_path->sgid = req_msg->primary_remote_gid; |
1410 | primary_path->dlid = req_msg->primary_local_lid; | 1410 | primary_path->dlid = req_msg->primary_local_lid; |
@@ -1426,7 +1426,7 @@ static void cm_format_paths_from_req(struct cm_req_msg *req_msg, | |||
1426 | primary_path->service_id = req_msg->service_id; | 1426 | primary_path->service_id = req_msg->service_id; |
1427 | 1427 | ||
1428 | if (req_msg->alt_local_lid) { | 1428 | if (req_msg->alt_local_lid) { |
1429 | memset(alt_path, 0, sizeof *alt_path); | 1429 | memset(alt_path, 0, sizeof(*alt_path)); |
1430 | alt_path->dgid = req_msg->alt_local_gid; | 1430 | alt_path->dgid = req_msg->alt_local_gid; |
1431 | alt_path->sgid = req_msg->alt_remote_gid; | 1431 | alt_path->sgid = req_msg->alt_remote_gid; |
1432 | alt_path->dlid = req_msg->alt_local_lid; | 1432 | alt_path->dlid = req_msg->alt_local_lid; |
@@ -3712,7 +3712,7 @@ static void cm_recv_handler(struct ib_mad_agent *mad_agent, | |||
3712 | atomic_long_inc(&port->counter_group[CM_RECV]. | 3712 | atomic_long_inc(&port->counter_group[CM_RECV]. |
3713 | counter[attr_id - CM_ATTR_ID_OFFSET]); | 3713 | counter[attr_id - CM_ATTR_ID_OFFSET]); |
3714 | 3714 | ||
3715 | work = kmalloc(sizeof *work + sizeof(struct ib_sa_path_rec) * paths, | 3715 | work = kmalloc(sizeof(*work) + sizeof(struct ib_sa_path_rec) * paths, |
3716 | GFP_KERNEL); | 3716 | GFP_KERNEL); |
3717 | if (!work) { | 3717 | if (!work) { |
3718 | ib_free_recv_mad(mad_recv_wc); | 3718 | ib_free_recv_mad(mad_recv_wc); |