[09/36] amd64_edac: Correct scrub rate setting

From: Greg KH
Date: Fri Aug 06 2010 - 15:35:46 EST

2.6.34-stable review patch. If anyone has any objections, please let us know.


From: Borislav Petkov <borislav.petkov@xxxxxxx>

commit bc57117856cf1e581135810b37d3b75f9d1749f5 upstream.

Exit early when setting scrub rate on unknown/unsupported families.

Signed-off-by: Borislav Petkov <borislav.petkov@xxxxxxx>
Acked-by: Doug Thompson <dougthompson@xxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>

drivers/edac/amd64_edac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/edac/amd64_edac.c
+++ b/drivers/edac/amd64_edac.c
@@ -178,7 +178,7 @@ static int amd64_set_scrub_rate(struct m

amd64_printk(KERN_ERR, "Unsupported family!\n");
- break;
+ return -EINVAL;
return amd64_search_set_scrub_rate(pvt->misc_f3_ctl, *bandwidth,

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/