diff options
Diffstat (limited to 'net/dcb/dcbnl.c')
-rw-r--r-- | net/dcb/dcbnl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dcb/dcbnl.c b/net/dcb/dcbnl.c index e954d4c6590c..fc56e8546261 100644 --- a/net/dcb/dcbnl.c +++ b/net/dcb/dcbnl.c | |||
@@ -1329,7 +1329,7 @@ int dcbnl_notify(struct net_device *dev, int event, int cmd, | |||
1329 | 1329 | ||
1330 | nlh = nlmsg_put(skb, pid, 0, event, sizeof(*dcb), 0); | 1330 | nlh = nlmsg_put(skb, pid, 0, event, sizeof(*dcb), 0); |
1331 | if (nlh == NULL) { | 1331 | if (nlh == NULL) { |
1332 | kfree(skb); | 1332 | nlmsg_free(skb); |
1333 | return -EMSGSIZE; | 1333 | return -EMSGSIZE; |
1334 | } | 1334 | } |
1335 | 1335 | ||
@@ -1434,7 +1434,7 @@ static int dcbnl_ieee_get(struct net_device *netdev, struct nlattr **tb, | |||
1434 | 1434 | ||
1435 | nlh = nlmsg_put(skb, pid, seq, RTM_GETDCB, sizeof(*dcb), flags); | 1435 | nlh = nlmsg_put(skb, pid, seq, RTM_GETDCB, sizeof(*dcb), flags); |
1436 | if (nlh == NULL) { | 1436 | if (nlh == NULL) { |
1437 | kfree(skb); | 1437 | nlmsg_free(skb); |
1438 | return -EMSGSIZE; | 1438 | return -EMSGSIZE; |
1439 | } | 1439 | } |
1440 | 1440 | ||