grub-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Trunk: usbtrans.c - wrong max packet size for bulk transfer


From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: Re: [PATCH] Trunk: usbtrans.c - wrong max packet size for bulk transfer
Date: Fri, 01 Oct 2010 09:35:46 +0200
User-agent: Mozilla/5.0 (X11; U; Linux mips64; en-US; rv:1.9.1.12) Gecko/20100918 Icedove/3.0.8

On 09/23/2010 10:27 PM, Aleš Nesrsta wrote:
>       code works on on 64 bits architectures.  */
> -  u->td = (grub_uhci_td_t) grub_memalign (4096, 4096*2);
> +  u->td = (grub_uhci_td_t) grub_memalign (4096, 32*N_TD);
>    if (! u->td)
>      goto fail;
>   
Could you use sizeof while on it?

-      endpdesc = grub_usb_get_endpdescriptor (dev, 0);
+      endpdesc = grub_usb_get_endpdescriptor (dev, endpoint);
It's hard to see the context of this change. Could you use --diff-options=-p in 
the future?
Other than that this patch is ok for trunk
 



-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko




reply via email to

[Prev in Thread] Current Thread [Next in Thread]