Peter A. Bigot wrote:
> From 24f0ffd6f74c948d6838535af3e2418cc544dbac Mon Sep 17 00:00:00 2001
> From: "Peter A. Bigot" <[email protected]>
> Date: Sun, 13 Jul 2014 05:02:56 -0500
> Subject: [PATCH] read_async: rework USB buffer management to avoid libusb API
>  violation
> 
> rtl_sdr on 64-bit Ubuntu 12.04 generates segfaults when interrupted
> because the buffer used by a transfer initiated in rtlsdr_read_async()
> was freed before the corresponding callback had been processed.
> 
> This commit reworks the async buffer management so that the callback is
> responsible for freeing the buffer during the cancellation process and
> ensures that the async call does not return until all buffers have been
> released.

Yes, this seems like a good idea. Thanks!


//Peter

Reply via email to