[PATCH 1/1] pcmcia: Fix resource leaks in yenta_probe() and _close()

Dominik Brodowski linux at dominikbrodowski.net
Sun Jun 14 12:37:55 PDT 2015

On Mon, Jun 15, 2015 at 02:43:59AM +0900, Takeshi Yoshimura wrote:
> There are some resource leaks in yenta_probe() and _close(). I fixed
> the following issues with some code cleanups. Thanks to Dominik's
> suggestions.
> On the error path in yenta_probe():
> - a requested irq is not released
> - yenta_free_resources() and pci_set_drvdata(dev, NULL) are not called
> In yenta_close():
> - kfree(sock) is not called
> - sock->base is always set to non-NULL when yenta_close() is called,
>   therefore the check in yenta_close() is not necessary.
> Signed-off-by: Takeshi Yoshimura <yos at sslab.ics.keio.ac.jp>

Applied to the PCMCIA tree. Many thanks!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-pcmcia/attachments/20150614/0c4d2243/attachment.sig>

More information about the linux-pcmcia mailing list