Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277044
b: refs/heads/master
c: aef950b
h: refs/heads/master
v: v3
  • Loading branch information
Wei Yongjun authored and David S. Miller committed Dec 28, 2011
1 parent 3e9d014 commit fe19096
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c43c5f39584c0f388a7e5372312c2c48221a4415
refs/heads/master: aef950b4ba3196622a5bd5e21ab1d63f30658285
6 changes: 5 additions & 1 deletion trunk/net/packet/af_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -2448,8 +2448,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);

Expand Down

0 comments on commit fe19096

Please sign in to comment.