From 5d7b3def283de6f59924646881b2c7386833ceb7 Mon Sep 17 00:00:00 2001 From: chas williams - CONTRACTOR Date: Fri, 4 Dec 2009 05:22:17 +0000 Subject: [PATCH] --- yaml --- r: 175531 b: refs/heads/master c: 504bb3b58e7314e0fe026da280e8168c1314be3d h: refs/heads/master i: 175529: 2e1359049aa2b0040d554399792b6968fa34d12a 175527: dd77863658067d15e0f3f94b22a736bec1451287 v: v3 --- [refs] | 2 +- trunk/drivers/atm/he.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 67350d5f4fbf..9233a00d7c2c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: eb0445887a45a3705522aac6c2d8367e90358792 +refs/heads/master: 504bb3b58e7314e0fe026da280e8168c1314be3d diff --git a/trunk/drivers/atm/he.c b/trunk/drivers/atm/he.c index e90665876c47..e8c6529dc366 100644 --- a/trunk/drivers/atm/he.c +++ b/trunk/drivers/atm/he.c @@ -2505,7 +2505,7 @@ he_close(struct atm_vcc *vcc) * TBRQ, the host issues the close command to the adapter. */ - while (((tx_inuse = atomic_read(&sk_atm(vcc)->sk_wmem_alloc)) > 0) && + while (((tx_inuse = atomic_read(&sk_atm(vcc)->sk_wmem_alloc)) > 1) && (retry < MAX_RETRY)) { msleep(sleep); if (sleep < 250) @@ -2514,7 +2514,7 @@ he_close(struct atm_vcc *vcc) ++retry; } - if (tx_inuse) + if (tx_inuse > 1) hprintk("close tx cid 0x%x tx_inuse = %d\n", cid, tx_inuse); /* 2.3.1.1 generic close operations with flush */