[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2] usb: fix unbounded stack warning for xhci_dm
From: |
Gerd Hoffmann |
Subject: |
Re: [Qemu-devel] [PATCH v2] usb: fix unbounded stack warning for xhci_dma_write_u32s |
Date: |
Fri, 18 Mar 2016 13:42:44 +0100 |
On Fr, 2016-03-11 at 09:51 +0800, Peter Xu wrote:
> All the callers for xhci_dma_write_u32s() are using mostly 5 * uint32_t
> in len. To avoid unbound stack warning for the function, make it
> statically allocated, and assert when it's not big enough in the
> future.
Added to usb queue.
thanks,
Gerd