From: Chas Williams Date: Tue, 3 Oct 2006 23:28:31 +0000 (-0700) Subject: [ATM]: [zatm] always *pcr in alloc_shaper() X-Git-Tag: v2.6.19-rc1~33^2~3 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e0c0ac84c01f41fb266bcdd2802708409901bed;p=linux-2.6 [ATM]: [zatm] always *pcr in alloc_shaper() Signed-off-by: Chas Williams Signed-off-by: David S. Miller --- diff --git a/drivers/atm/zatm.c b/drivers/atm/zatm.c index c491ec455c..083c5d3f2e 100644 --- a/drivers/atm/zatm.c +++ b/drivers/atm/zatm.c @@ -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) {