diff options
Diffstat (limited to 'drivers/atm/he.c')
-rw-r--r-- | drivers/atm/he.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/atm/he.c b/drivers/atm/he.c index e90665876c47..e8c6529dc366 100644 --- a/drivers/atm/he.c +++ b/drivers/atm/he.c | |||
@@ -2505,7 +2505,7 @@ he_close(struct atm_vcc *vcc) | |||
2505 | * TBRQ, the host issues the close command to the adapter. | 2505 | * TBRQ, the host issues the close command to the adapter. |
2506 | */ | 2506 | */ |
2507 | 2507 | ||
2508 | while (((tx_inuse = atomic_read(&sk_atm(vcc)->sk_wmem_alloc)) > 0) && | 2508 | while (((tx_inuse = atomic_read(&sk_atm(vcc)->sk_wmem_alloc)) > 1) && |
2509 | (retry < MAX_RETRY)) { | 2509 | (retry < MAX_RETRY)) { |
2510 | msleep(sleep); | 2510 | msleep(sleep); |
2511 | if (sleep < 250) | 2511 | if (sleep < 250) |
@@ -2514,7 +2514,7 @@ he_close(struct atm_vcc *vcc) | |||
2514 | ++retry; | 2514 | ++retry; |
2515 | } | 2515 | } |
2516 | 2516 | ||
2517 | if (tx_inuse) | 2517 | if (tx_inuse > 1) |
2518 | hprintk("close tx cid 0x%x tx_inuse = %d\n", cid, tx_inuse); | 2518 | hprintk("close tx cid 0x%x tx_inuse = %d\n", cid, tx_inuse); |
2519 | 2519 | ||
2520 | /* 2.3.1.1 generic close operations with flush */ | 2520 | /* 2.3.1.1 generic close operations with flush */ |