Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
This commit is contained in:
commit
7f8e3234c5
51 changed files with 356 additions and 172 deletions
|
@ -2453,8 +2453,12 @@ static int packet_do_bind(struct sock *sk, struct net_device *dev, __be16 protoc
|
|||
{
|
||||
struct packet_sock *po = pkt_sk(sk);
|
||||
|
||||
if (po->fanout)
|
||||
if (po->fanout) {
|
||||
if (dev)
|
||||
dev_put(dev);
|
||||
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
lock_sock(sk);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue