[ewg] [PATCH 8/10 VNIC] Check for hearbeat value of 0

Ramachandra K ramachandra.kuchimanchi at qlogic.com
Tue Aug 21 07:26:39 PDT 2007


Check for zero value of hearbeat.

From: Poornima Kamath <poornima.kamath at qlogic.com>
Signed-off-by: Ramachandra K <ramachandra.kuchimanchi at qlogic.com>
---

 drivers/infiniband/ulp/vnic/vnic_sys.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/infiniband/ulp/vnic/vnic_sys.c b/drivers/infiniband/ulp/vnic/vnic_sys.c
index 034be7c..280ace4 100644
--- a/drivers/infiniband/ulp/vnic/vnic_sys.c
+++ b/drivers/infiniband/ulp/vnic/vnic_sys.c
@@ -213,7 +213,7 @@ static int vnic_parse_options(const char
 				goto out;
 			}
 
-			if (token > 6000 || token < 0) {
+			if (token > 6000 || token <= 0) {
 				printk(KERN_WARNING PFX
 				       "heartbeat parameter must be"
 				       " > 0 and <= 6000\n");



More information about the ewg mailing list