Skip to content

Commit

Permalink
i7core_edac: Fix the logic in i7core_remove()
Browse files Browse the repository at this point in the history
commit 47251b4d960bdfa648b0d06dbc6d445f41cb3906 have changed
the logic for unexplained reasons.  It looks strange that it
can release i7core_dev without calling i7core_put_devices()
that releases i7core_dev->pdev.

Fix the part.

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Hidetoshi Seto authored and Mauro Carvalho Chehab committed Oct 24, 2010
1 parent 54a08ab commit 45b7c98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/edac/i7core_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -2095,9 +2095,9 @@ static void __devexit i7core_remove(struct pci_dev *pdev)

/* Release PCI resources */
i7core_put_devices(i7core_dev);
list_del(&i7core_dev->list);
kfree(i7core_dev);
}
list_del(&i7core_dev->list);
kfree(i7core_dev);
}
probed--;

Expand Down

0 comments on commit 45b7c98

Please sign in to comment.