Re: [Qemu-devel] [PATCH v4 02/10] hcd-xhci: check & correct param before using it

2016-11-02 Thread Markus Armbruster
Cao jin writes: > Param checking/correcting code of xchi->numintrs should be placed before > it is used. > Also move some resource-alloc code down, save the strenth to free them > on msi_init's failure. > > CC: Gerd Hoffmann > CC: Markus Armbruster > CC: Marcel Apfelbaum > CC: Michael S. Tsirk

[Qemu-devel] [PATCH v4 02/10] hcd-xhci: check & correct param before using it

2016-10-18 Thread Cao jin
Param checking/correcting code of xchi->numintrs should be placed before it is used. Also move some resource-alloc code down, save the strenth to free them on msi_init's failure. CC: Gerd Hoffmann CC: Markus Armbruster CC: Marcel Apfelbaum CC: Michael S. Tsirkin Reviewed-by: Gerd Hoffmann Si