From 7e3b2fd93a2683bb16da2722a4d557b65d63150e Mon Sep 17 00:00:00 2001 From: Bryan O'Sullivan Date: Sat, 1 Jul 2006 04:36:08 -0700 Subject: [PATCH] --- yaml --- r: 31563 b: refs/heads/master c: 85322947d761d08bd84165500f35b93c702aaaf3 h: refs/heads/master i: 31561: 33d7cf74b1ef4fdb7af1b03aa18b8d8dd974dcaf 31559: 5204d89b03fd2f80fcf93db7b63377fccc1f1f8c v: v3 --- [refs] | 2 +- trunk/drivers/infiniband/hw/ipath/ipath_sysfs.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index a85ddf47e92f..35f65f95dde7 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7cd658cd2bca48d3a0e747b4525c72eb8855278e +refs/heads/master: 85322947d761d08bd84165500f35b93c702aaaf3 diff --git a/trunk/drivers/infiniband/hw/ipath/ipath_sysfs.c b/trunk/drivers/infiniband/hw/ipath/ipath_sysfs.c index 450c09ea5bc1..ccff629278a4 100644 --- a/trunk/drivers/infiniband/hw/ipath/ipath_sysfs.c +++ b/trunk/drivers/infiniband/hw/ipath/ipath_sysfs.c @@ -280,7 +280,7 @@ static ssize_t store_lid(struct device *dev, if (ret < 0) goto invalid; - if (lid == 0 || lid >= 0xc000) { + if (lid == 0 || lid >= IPS_MULTICAST_LID_BASE) { ret = -EINVAL; goto invalid; } @@ -314,7 +314,7 @@ static ssize_t store_mlid(struct device *dev, int ret; ret = ipath_parse_ushort(buf, &mlid); - if (ret < 0) + if (ret < 0 || mlid < IPS_MULTICAST_LID_BASE) goto invalid; unit = dd->ipath_unit;