From: Takeshi Yoshimura Date: Sun, 14 Jun 2015 17:43:59 +0000 (+0900) Subject: pcmcia: Fix resource leaks in yenta_probe() and _close() X-Git-Tag: omap-for-v4.2/fixes-rc1^2~158^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d19319affb6c84ef45185588f63dc28f8ff95ea3;p=pandora-kernel.git pcmcia: Fix resource leaks in yenta_probe() and _close() 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 Signed-off-by: Dominik Brodowski --- Reading git-diff-tree failed