Re: [PATCH 2/5] MEDIA: ttusbir, fix double free

2013-04-09 Thread Sean Young
On Thu, Apr 04, 2013 at 10:32:09PM +0200, Jiri Slaby wrote: > rc_unregister_device already calls rc_free_device to free the passed > device. But in one of ttusbir's probe fail paths, we call > rc_unregister_device _and_ rc_free_device. This is wrong and results > in a double free. > > Instead, set

[PATCH 2/5] MEDIA: ttusbir, fix double free

2013-04-04 Thread Jiri Slaby
rc_unregister_device already calls rc_free_device to free the passed device. But in one of ttusbir's probe fail paths, we call rc_unregister_device _and_ rc_free_device. This is wrong and results in a double free. Instead, set rc to NULL resulting in rc_free_device being a noop. Signed-off-by: Ji