On Wed, Jan 12, 2011 at 06:26:43PM -0800, Sukanto Ghosh wrote: > Diff against 2.6.37 > > > Signed-off-by: Sukanto Ghosh <sukanto.cse.iitb@xxxxxxxxx> > > ---- > diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c > index b25e6e4..add97dd 100644 > --- a/drivers/serial/8250.c > +++ b/drivers/serial/8250.c > @@ -1724,7 +1724,7 @@ static int serial_link_irq_chain(struct > uart_8250_port *up) > > static void serial_unlink_irq_chain(struct uart_8250_port *up) > { > - struct irq_info *i; > + struct irq_info *i = NULL; > struct hlist_node *n; > struct hlist_head *h; > > @@ -1739,7 +1739,7 @@ static void serial_unlink_irq_chain(struct > uart_8250_port *up) > } > > BUG_ON(n == NULL); > - BUG_ON(i->head == NULL); > + BUG_ON(i == NULL || i->head == NULL); If you just set it to NULL, how could it ever not be NULL, so why add this check? Also, no, this isn't correct, i is used in the hlist traversal. thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html