Loading net/packet/af_packet.c +5 −1 Original line number Diff line number Diff line Loading @@ -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); Loading Loading
net/packet/af_packet.c +5 −1 Original line number Diff line number Diff line Loading @@ -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); Loading