Prev: [22/34] SCSI: enclosure: fix error path - actually return ERR_PTR() on error
Next: [09/34] amd64_edac: Fix DCT base address selector
From: Greg KH on 6 Aug 2010 15:20 2.6.32-stable review patch. If anyone has any objections, please let us know. ------------------ From: Borislav Petkov <borislav.petkov(a)amd.com> commit bc57117856cf1e581135810b37d3b75f9d1749f5 upstream. Exit early when setting scrub rate on unknown/unsupported families. Signed-off-by: Borislav Petkov <borislav.petkov(a)amd.com> Acked-by: Doug Thompson <dougthompson(a)xmission.com> Signed-off-by: Greg Kroah-Hartman <gregkh(a)suse.de> --- 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 @@ -156,7 +156,7 @@ static int amd64_set_scrub_rate(struct m default: amd64_printk(KERN_ERR, "Unsupported family!\n"); - break; + return -EINVAL; } return amd64_search_set_scrub_rate(pvt->misc_f3_ctl, *bandwidth, min_scrubrate); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |