]> Pileus Git - ~andy/linux/blobdiff - drivers/atm/zatm.c
[ATM]: [zatm] always *pcr in alloc_shaper()
[~andy/linux] / 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) {