Re: [PATCH] kvm tools, i8042: Fix device init failure

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

 



On Thu, Jun 2, 2011 at 4:40 PM, Ingo Molnar <mingo@xxxxxxx> wrote:
>> +     case I8042_COMMAND_REG: {
>> +             u8 value = kbd_read_status();
>> +             ioport__write8(data, value);
>> +             break;
>> +     }
>> +     case I8042_DATA_REG: {
>> +             u32 value = kbd_read_data();
>> +             ioport__write32(data, value);
>> +             break;
>>       }
>> +     default:
>> +             break;
>
> should we BUG_ON() [or WARN_ON()] in that 'default' case?
>
>> +     default:
>> +             break;
>
> ditto. This could have caught the bug straight away, right?

I changed them to return false. That WARN_ON should be in common code, I think.

                        Pekka
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux