On Mon, Feb 26, 2018 at 7:16 PM, Rolf Evers-Fischer
<embedde...@evers-fischer.de> wrote:
> From: Rolf Evers-Fischer <rolf.evers.fisc...@aptiv.com>
>
> 'put_device()' calls the relase function 'pci_epf_dev_release()',
> which already frees 'epf->name' and 'epf'.
>
> Therefore we must not free them again after 'put_device()'.

>  put_dev:
>         put_device(dev);
> -       kfree(epf->name);
> +       return ERR_PTR(ret);

Ouch, if it's double free (sounds like it is) it should be fixed up to
initial commit which brought that.
Thus, Fixes tag would be good to see.

-- 
With Best Regards,
Andy Shevchenko

Reply via email to