iwcm: common code for port mapper
[sfrench/cifs-2.6.git] / drivers / infiniband / core / iwpm_msg.c
index 22a3abee2a54c0fdce95a4567ef3cc45a20901ad..c2b4ce67fd4afebbd1f8dec1ef9c1093f1d4fdc1 100644 (file)
@@ -88,7 +88,7 @@ int iwpm_register_pid(struct iwpm_dev_data *pm_msg, u8 nl_client)
        ret = ibnl_put_attr(skb, nlh, sizeof(u32), &msg_seq, IWPM_NLA_REG_PID_SEQ);
        if (ret)
                goto pid_query_error;
-       ret = ibnl_put_attr(skb, nlh, IWPM_IFNAME_SIZE,
+       ret = ibnl_put_attr(skb, nlh, IFNAMSIZ,
                                pm_msg->if_name, IWPM_NLA_REG_IF_NAME);
        if (ret)
                goto pid_query_error;