diff options
Diffstat (limited to 'net/netlabel/netlabel_cipso_v4.c')
-rw-r--r-- | net/netlabel/netlabel_cipso_v4.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/net/netlabel/netlabel_cipso_v4.c b/net/netlabel/netlabel_cipso_v4.c index 52628878524c..fe9851fac85d 100644 --- a/net/netlabel/netlabel_cipso_v4.c +++ b/net/netlabel/netlabel_cipso_v4.c | |||
@@ -457,12 +457,8 @@ list_start: | |||
457 | ret_val = -ENOMEM; | 457 | ret_val = -ENOMEM; |
458 | goto list_failure; | 458 | goto list_failure; |
459 | } | 459 | } |
460 | data = netlbl_netlink_hdr_put(ans_skb, | 460 | data = genlmsg_put_reply(ans_skb, info, &netlbl_cipsov4_gnl_family, |
461 | info->snd_pid, | 461 | 0, NLBL_CIPSOV4_C_LIST); |
462 | info->snd_seq, | ||
463 | netlbl_cipsov4_gnl_family.id, | ||
464 | 0, | ||
465 | NLBL_CIPSOV4_C_LIST); | ||
466 | if (data == NULL) { | 462 | if (data == NULL) { |
467 | ret_val = -ENOMEM; | 463 | ret_val = -ENOMEM; |
468 | goto list_failure; | 464 | goto list_failure; |
@@ -607,12 +603,9 @@ static int netlbl_cipsov4_listall_cb(struct cipso_v4_doi *doi_def, void *arg) | |||
607 | struct netlbl_cipsov4_doiwalk_arg *cb_arg = arg; | 603 | struct netlbl_cipsov4_doiwalk_arg *cb_arg = arg; |
608 | void *data; | 604 | void *data; |
609 | 605 | ||
610 | data = netlbl_netlink_hdr_put(cb_arg->skb, | 606 | data = genlmsg_put(cb_arg->skb, NETLINK_CB(cb_arg->nl_cb->skb).pid, |
611 | NETLINK_CB(cb_arg->nl_cb->skb).pid, | 607 | cb_arg->seq, &netlbl_cipsov4_gnl_family, |
612 | cb_arg->seq, | 608 | NLM_F_MULTI, NLBL_CIPSOV4_C_LISTALL); |
613 | netlbl_cipsov4_gnl_family.id, | ||
614 | NLM_F_MULTI, | ||
615 | NLBL_CIPSOV4_C_LISTALL); | ||
616 | if (data == NULL) | 609 | if (data == NULL) |
617 | goto listall_cb_failure; | 610 | goto listall_cb_failure; |
618 | 611 | ||