, Tuba; linux-media@vger.kernel.org
Cc: Greg KH
Subject: Re: [PATCH] : media : hackrf : memory leak
Hi Tuba,
On 1/27/19 11:57 PM, Yavuz, Tuba wrote:
>
>
> Due to a missing v4l2_device_get function in the hackrf_probe function,
> the reference count of the v4l2_device object reaches zer
Due to a missing v4l2_device_get function in the hackrf_probe function,
the reference count of the v4l2_device object reaches zero inside the
wrong API function (video_unregister_device) instead of v4l2_device_put.
This causes a memory leak as the release callback would not get called.