[ATM]: [zatm] always *pcr in alloc_shaper()
authorChas Williams <chas@cmf.nrl.navy.mil>
Tue, 3 Oct 2006 23:28:31 +0000 (16:28 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 4 Oct 2006 07:31:06 +0000 (00:31 -0700)
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/zatm.c

index c491ec4..083c5d3 100644 (file)
@@ -800,6 +800,7 @@ static int alloc_shaper(struct atm_dev *dev,int *pcr,int min,int max,int ubr)
                i = m = 1;
                zatm_dev->ubr_ref_cnt++;
                zatm_dev->ubr = shaper;
+               *pcr = 0;
        }
        else {
                if (min) {