[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100601151800.GA12984@aftab>
Date: Tue, 1 Jun 2010 17:18:00 +0200
From: Borislav Petkov <bp@...64.org>
To: mingo@...e.hu, norsk5@...oo.com
Cc: hpa@...or.com, tglx@...utronix.de, linux-edac@...r.kernel.org,
linux-kernel@...r.kernel.org,
"Petkov, Borislav" <Borislav.Petkov@....com>
Subject: [PATCH 7/8] amd64_edac: Correct scrub rate setting
Exit early when setting scrub rate on unknown/unsupported families.
Cc: stable@...nel.org
Signed-off-by: Borislav Petkov <borislav.petkov@....com>
---
drivers/edac/amd64_edac.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
index 6866b98..71f5ce1 100644
--- a/drivers/edac/amd64_edac.c
+++ b/drivers/edac/amd64_edac.c
@@ -178,7 +178,7 @@ static int amd64_set_scrub_rate(struct mem_ctl_info *mci, u32 *bandwidth)
default:
amd64_printk(KERN_ERR, "Unsupported family!\n");
- break;
+ return -EINVAL;
}
return amd64_search_set_scrub_rate(pvt->misc_f3_ctl, *bandwidth,
min_scrubrate);
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists