]> err.no Git - linux-2.6/commitdiff
[IPV4]: Get rid of bogus __in_put_dev in pktgen
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 3 Oct 2005 21:36:32 +0000 (14:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Oct 2005 21:36:32 +0000 (14:36 -0700)
This patch gets rid of a bogus __in_dev_put() in pktgen.c.  This was
spotted by Suzanne Wood.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c

index 44de070b604510b1bdebe1684ba651f58d46eb02..5f043d346694dc012ba3403b82d875cd6a0133f1 100644 (file)
@@ -1673,7 +1673,6 @@ static void pktgen_setup_inject(struct pktgen_dev *pkt_dev)
                                        pkt_dev->saddr_min = in_dev->ifa_list->ifa_address;
                                        pkt_dev->saddr_max = pkt_dev->saddr_min;
                                }
-                               __in_dev_put(in_dev);   
                        }
                        rcu_read_unlock();
                }