From: Vladimir 'phcoder' Serbinenko Date: Mon, 12 Dec 2011 23:29:42 +0000 (+0100) Subject: * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned X-Git-Tag: 2.00~923 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0af2346fdb41b8663ccdfa887e1c699209ca792d;p=thirdparty%2Fgrub.git * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned specification. --- diff --git a/ChangeLog b/ChangeLog index ec65fb11e..43b5d59d3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-12-13 Vladimir Serbinenko + + * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned + specification. + 2011-12-13 Vladimir Serbinenko * include/grub/loader.h (grub_loader_register_preboot_hook): diff --git a/grub-core/bus/usb/ohci.c b/grub-core/bus/usb/ohci.c index 2291619cb..3f5ca7b03 100644 --- a/grub-core/bus/usb/ohci.c +++ b/grub-core/bus/usb/ohci.c @@ -1152,8 +1152,8 @@ grub_ohci_check_transfer (grub_usb_controller_t dev, return parse_halt (dev, transfer, actual); /* Finished ED detection */ - if ( (grub_le_to_cpu32 (cdata->ed_virt->td_head) & ~0xf) == - (grub_le_to_cpu32 (cdata->ed_virt->td_tail) & ~0xf) ) /* Empty ED */ + if ( (grub_le_to_cpu32 (cdata->ed_virt->td_head) & ~0xfU) == + (grub_le_to_cpu32 (cdata->ed_virt->td_tail) & ~0xfU) ) /* Empty ED */ { /* Check the HALT bit */ /* It looks like nonsense - it was tested previously...