Re: [PATCH] usbip: Fix free of unallocated memory in vhci tx

2019-10-22 Thread Suwan Kim
On Mon, Oct 21, 2019 at 01:28:54PM -0600, shuah wrote: > On 10/21/19 9:08 AM, Julia Lawall wrote: > > > > > > On Mon, 21 Oct 2019, Suwan Kim wrote: > > > > > iso_buffer should be set to NULL after use and free in the while loop. > > > In the case of isochronous URB in the while loop, iso_buffer

Re: [PATCH] usbip: Fix free of unallocated memory in vhci tx

2019-10-21 Thread shuah
On 10/21/19 9:08 AM, Julia Lawall wrote: On Mon, 21 Oct 2019, Suwan Kim wrote: iso_buffer should be set to NULL after use and free in the while loop. In the case of isochronous URB in the while loop, iso_buffer is allocated and after sending it to server, buffer is deallocated. And then, if t

Re: [PATCH] usbip: Fix free of unallocated memory in vhci tx

2019-10-21 Thread Julia Lawall
On Mon, 21 Oct 2019, Suwan Kim wrote: > iso_buffer should be set to NULL after use and free in the while loop. > In the case of isochronous URB in the while loop, iso_buffer is > allocated and after sending it to server, buffer is deallocated. And > then, if the next URB in the while loop is not

[PATCH] usbip: Fix free of unallocated memory in vhci tx

2019-10-21 Thread Suwan Kim
iso_buffer should be set to NULL after use and free in the while loop. In the case of isochronous URB in the while loop, iso_buffer is allocated and after sending it to server, buffer is deallocated. And then, if the next URB in the while loop is not a isochronous pipe, iso_buffer still holds the p