Re: [Fastboot] Re: [PATCH] [KDUMP] pending interrupts problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 27 Oct 2005, Eric W. Biederman wrote:
> 
> Alex Lyashkov <[email protected]> writes:
> 
> > seems to bad patch. you dereference pointer (1) before check to NULL(2).
> 
> Duh.  I forgot to delete the earlier references. 
> That should have been...

Thank you Eric, the patch you resent has fixed the problem,
which originally happened on vanilla 2.6.13.

But, on such an unusual case, I prefer to mark it unlikely() and
output some warning message.

> +	/* Ignore spurious IPIs */
> +	if (!call_data)
> +		return;

	if (unlikely(!call_data)) {
		printk(KERN_WARNING "spurious IPI on CPU#%d, ignored\n",
		       smp_processor_id());
		return;
	}

Please take this if you like it, Eric.  I have also tested this
printk-added code.

Regards,

-- 
OBATA Noboru ([email protected])

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux