Showing error 850

User: Jiri Slaby
Error type: Resource Leak
Error type description: The code omits to put the resource to the system for reuse
File location: drivers/edac/i82975x_edac.c
Line in file: 625
Project: Linux Kernel
Project version: 2.6.28
Tools: Stanse (1.2)
Entered: 2011-11-07 22:40:13 UTC


Source:

595                0,
596        }        /* 0 terminated list. */
597};
598
599MODULE_DEVICE_TABLE(pci, i82975x_pci_tbl);
600
601static struct pci_driver i82975x_driver = {
602        .name = EDAC_MOD_STR,
603        .probe = i82975x_init_one,
604        .remove = __devexit_p(i82975x_remove_one),
605        .id_table = i82975x_pci_tbl,
606};
607
608static int __init i82975x_init(void)
609{
610        int pci_rc;
611
612        debugf3("%s()\n", __func__);
613
614       /* Ensure that the OPSTATE is set correctly for POLL or NMI */
615       opstate_init();
616
617        pci_rc = pci_register_driver(&i82975x_driver);
618        if (pci_rc < 0)
619                goto fail0;
620
621        if (mci_pdev == NULL) {
622                mci_pdev = pci_get_device(PCI_VENDOR_ID_INTEL,
623                                PCI_DEVICE_ID_INTEL_82975_0, NULL);
624
625                if (!mci_pdev) {
626                        debugf0("i82975x pci_get_device fail\n");
627                        pci_rc = -ENODEV;
628                        goto fail1;
629                }
630
631                pci_rc = i82975x_init_one(mci_pdev, i82975x_pci_tbl);
632
633                if (pci_rc < 0) {
634                        debugf0("i82975x init fail\n");
635                        pci_rc = -ENODEV;
Show full sources