diff options
author | Chas Williams <chas@cmf.nrl.navy.mil> | 2006-10-03 19:28:31 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-10-04 03:31:06 -0400 |
commit | 3e0c0ac84c01f41fb266bcdd2802708409901bed (patch) | |
tree | 21e9ec884643a145f3492defe1c5684643dbe5cf /drivers/atm | |
parent | 3a4e5e2033eb7558ebe307e46f5fb6e63b92cab8 (diff) |
[ATM]: [zatm] always *pcr in alloc_shaper()
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/atm')
-rw-r--r-- | drivers/atm/zatm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/atm/zatm.c b/drivers/atm/zatm.c index c491ec455cac..083c5d3f2e18 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) | |||
800 | i = m = 1; | 800 | i = m = 1; |
801 | zatm_dev->ubr_ref_cnt++; | 801 | zatm_dev->ubr_ref_cnt++; |
802 | zatm_dev->ubr = shaper; | 802 | zatm_dev->ubr = shaper; |
803 | *pcr = 0; | ||
803 | } | 804 | } |
804 | else { | 805 | else { |
805 | if (min) { | 806 | if (min) { |