diff options
| author | Borislav Petkov <borislav.petkov@amd.com> | 2010-05-21 15:25:03 -0400 |
|---|---|---|
| committer | Borislav Petkov <borislav.petkov@amd.com> | 2010-08-03 10:14:05 -0400 |
| commit | bc57117856cf1e581135810b37d3b75f9d1749f5 (patch) | |
| tree | 55d3fc49304fe6d14814de9f7cd0021d02d06371 | |
| parent | 9975a5f22a4fcc8d08035c65439900a983f891ad (diff) | |
amd64_edac: Correct scrub rate setting
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>
| -rw-r--r-- | 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 4129aa0930cd..cdf457925f03 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) | |||
| 178 | 178 | ||
| 179 | default: | 179 | default: |
| 180 | amd64_printk(KERN_ERR, "Unsupported family!\n"); | 180 | amd64_printk(KERN_ERR, "Unsupported family!\n"); |
| 181 | break; | 181 | return -EINVAL; |
| 182 | } | 182 | } |
| 183 | return amd64_search_set_scrub_rate(pvt->misc_f3_ctl, *bandwidth, | 183 | return amd64_search_set_scrub_rate(pvt->misc_f3_ctl, *bandwidth, |
| 184 | min_scrubrate); | 184 | min_scrubrate); |
