Possible Bug
Carlo Caione
carlo at caione.org
Thu Mar 31 12:30:45 EDT 2016
On Thu, Mar 31, 2016 at 5:08 PM, Roger H Newell <newell.roger at gmail.com> wrote:
> On Thu, Mar 31, 2016 at 12:18 PM, nick <xerofoify at gmail.com> wrote:
>>
>>
>> On 2016-03-31 08:34 AM, Roger H Newell wrote:
>> In the fs/file_table.c file as from the root directory of your kernel tree change in the function,
>> get_empty_flip change these lines:
>> if (unlikely(error)) {
>> file_free(f);
>> return ERR_PTR(error);
>> }
>> to:
>> if (unlikely(error))
>> return ERR_PTR(error);
>> and tell me if that fixes your issue.
>> Nick
>
>
> Seems to have worked, the error is is gone and I can mount the USB device.
That's not a fix, you are leaking f.
--
Carlo Caione
More information about the Kernelnewbies
mailing list