net: fix double skb free in dcbnl
authorJohn Fastabend <john.r.fastabend@intel.com>
Fri, 25 Sep 2009 13:12:03 +0000 (13:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Sep 2009 03:16:15 +0000 (20:16 -0700)
netlink_unicast() calls kfree_skb even in the error case.

dcbnl calls netlink_unicast() which when it fails free's the
skb and returns an error value.  dcbnl is free'ing the skb
again when this error occurs.  This patch removes the double
free.

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dcb/dcbnl.c

diff --cc net/dcb/dcbnl.c
Simple merge