[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 c491ec455cac405bef84dace1d05fcd31e0ecb89..083c5d3f2e1855d25a568174fa176a65269327a9 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) {