Re: pnpacpi: reduce printk severity for "pnpacpi: exceeded the max number of ..."

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Bjorn Helgaas
Date: Friday, April 18, 2008 - 2:48 pm

On Wednesday 16 April 2008 07:02:20 pm Chris Wright wrote:

I don't object to the point of the patch (changing KERN_ERR to
KERN_WARNING), but there is a more serious bug lurking here that
corrupts memory, and if we're doing a -stable patch, we should
fix it.

The test is:

	if (i >= PNP_MAX_IRQ && !warned) {
		printk(...);
		warned = 1;
		return;
	}

But it should be:

	if (i >= PNP_MAX_IRQ) {
		if (!warned) {
			printk(...);
			warned = 1;
		}
		return;
	}



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: pnpacpi: reduce printk severity for "pnpacpi: exceeded ..., Bjorn Helgaas, (Fri Apr 18, 2:48 pm)