Commit 53d34b8c authored by Corey Minyard's avatar Corey Minyard
Browse files

ipmi: disable IRQ and ATN on an external disconnect



Otherwise there's no way to clear them without an external command,
and it could lock the OS in the VM if they were stuck.

Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent c9c47229
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -425,6 +425,11 @@ static void chr_event(void *opaque, int event)
            return;
        }
        ibe->connected = false;
        /*
         * Don't hang the OS trying to handle the ATN bit, other end will
         * resend on a reconnect.
         */
        k->set_atn(s, 0, 0);
        if (ibe->waiting_rsp) {
            ibe->waiting_rsp = false;
            ibe->inbuf[1] = ibe->outbuf[1] | 0x04;