ipmi: fix ipmi_si modprobe hang
authorCorey Minyard <cminyard@mvista.com>
Wed, 20 May 2009 18:36:17 +0000 (13:36 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 22 May 2009 14:30:41 +0000 (07:30 -0700)
commit9a2845c453d170e4e9b1437fa671dbf39b0e7bd8
tree7b7e923f27d244035be463d5abd85b652c949cd1
parent98f32602d42951e61a059685f842aa7d778ffab0
ipmi: fix ipmi_si modprobe hang

Instead of queuing IPMB messages before channel initialization, just
throw them away.  Nobody will be listening for them at this point,
anyway, and they will clog up the queue and nothing will be delivered
if we queue them.

Also set the current channel to the number of channels, as this value
is used to tell if the channel information has been initialized.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Cc: Ferenc Wagner <wferi@niif.hu>
Cc: Dan Frazier <dannf@hp.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/ipmi/ipmi_msghandler.c