diff options
Diffstat (limited to 'fs/dlm/netlink.c')
| -rw-r--r-- | fs/dlm/netlink.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/dlm/netlink.c b/fs/dlm/netlink.c index e7cfbaf8d0e2..1e6e227134d7 100644 --- a/fs/dlm/netlink.c +++ b/fs/dlm/netlink.c | |||
| @@ -56,13 +56,8 @@ static int send_data(struct sk_buff *skb) | |||
| 56 | { | 56 | { |
| 57 | struct genlmsghdr *genlhdr = nlmsg_data((struct nlmsghdr *)skb->data); | 57 | struct genlmsghdr *genlhdr = nlmsg_data((struct nlmsghdr *)skb->data); |
| 58 | void *data = genlmsg_data(genlhdr); | 58 | void *data = genlmsg_data(genlhdr); |
| 59 | int rv; | ||
| 60 | 59 | ||
| 61 | rv = genlmsg_end(skb, data); | 60 | genlmsg_end(skb, data); |
| 62 | if (rv < 0) { | ||
| 63 | nlmsg_free(skb); | ||
| 64 | return rv; | ||
| 65 | } | ||
| 66 | 61 | ||
| 67 | return genlmsg_unicast(&init_net, skb, listener_nlportid); | 62 | return genlmsg_unicast(&init_net, skb, listener_nlportid); |
| 68 | } | 63 | } |
