mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
amd64_edac: Correct scrub rate setting
Exit early when setting scrub rate on unknown/unsupported families. Cc: <[email protected]> # 32.x 33.x 34.x Signed-off-by: Borislav Petkov <[email protected]> Acked-by: Doug Thompson <[email protected]>
This commit is contained in:
parent
9975a5f22a
commit
bc57117856
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue