Re: [PATCH] mmc: host: Fix mmc_alloc_host() error path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jun 12, 2015 at 4:22 AM, Adrian Hunter <adrian.hunter@xxxxxxxxx> wrote:
> On 12/06/15 07:39, Fabio Estevam wrote:
>> From: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx>
>>
>> If mmc_gpio_alloc() fails we miss to call 'kfree(host)', so rearrange
>> the error path to fix it.
>
> Are you sure it doesn't get freed through put_device()?

Yes, you are right. Sorry for the noise.

Thanks
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux