diff mbox

[3/3] spi_topcliff_pch: fix resource leak issue

Message ID 1293449027-3219-3-git-send-email-tomoya-linux@dsn.okisemi.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Tomoya Dec. 27, 2010, 11:23 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/spi/spi_topcliff_pch.c b/drivers/spi/spi_topcliff_pch.c
index a796eaf..e806e31 100644
--- a/drivers/spi/spi_topcliff_pch.c
+++ b/drivers/spi/spi_topcliff_pch.c
@@ -1125,6 +1125,7 @@  static int pch_spi_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 err_spi_reg_master:
 	for (j = 0; j < i; j++)
 		spi_unregister_master(master[j]);
+	pch_spi_free_resources(board_dat);
 err_spi_get_resources:
 err_spi_alloc_master:
 	for (j = 0; j < i; j++)