projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9975a5f
)
amd64_edac: Correct scrub rate setting
author
Borislav Petkov
<borislav.petkov@amd.com>
Fri, 21 May 2010 19:25:03 +0000
(21:25 +0200)
committer
Borislav Petkov
<borislav.petkov@amd.com>
Tue, 3 Aug 2010 14:14:05 +0000
(16:14 +0200)
Exit early when setting scrub rate on unknown/unsupported families.
Cc: <stable@kernel.org> # 32.x 33.x 34.x
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Acked-by: Doug Thompson <dougthompson@xmission.com>
drivers/edac/amd64_edac.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/edac/amd64_edac.c
b/drivers/edac/amd64_edac.c
index 4129aa0930cdb9035ae7452e93d4ed902b40c61c..cdf457925f03287777b065b3f281a433b782afaa 100644
(file)
--- 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);