Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b90fe156 authored by Hitoshi Mitake's avatar Hitoshi Mitake Committed by Borislav Petkov
Browse files

i3200_edac: Add a missing pci_disable_device() on the exit path



Currently, i3200_edac.c forgets to call pci_disable_device() during a
process of disabling device. This patch adds that call.

The problem was detected by Huqiu Liu.

Reported-by: default avatarHuqiu Liu <liuhq11@mails.tsinghua.edu.cn>
Signed-off-by: default avatarHitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>
Link: http://lkml.kernel.org/r/1389587178-10167-1-git-send-email-mitake.hitoshi@gmail.com


Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
parent c2e650c4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -464,6 +464,8 @@ static void i3200_remove_one(struct pci_dev *pdev)
	iounmap(priv->window);

	edac_mc_free(mci);

	pci_disable_device(pdev);
}

static const struct pci_device_id i3200_pci_tbl[] = {