[Bugme-new] [Bug 11425] New: [linux-2.6/drivers/char/tpm/tpm.c:1208]: Memory leak: devname

bugme-daemon at bugzilla.kernel.org bugme-daemon at bugzilla.kernel.org
Mon Aug 25 10:56:07 PDT 2008


http://bugzilla.kernel.org/show_bug.cgi?id=11425

           Summary: [linux-2.6/drivers/char/tpm/tpm.c:1208]: Memory leak:
                    devname
           Product: Drivers
           Version: 2.5
     KernelVersion: latest git tree
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Other
        AssignedTo: drivers_other at kernel-bugs.osdl.org
        ReportedBy: danielm77 at spray.se


In the function tpm_register_hardware there is this condition...

        if (chip->dev_num >= TPM_NUM_DEVICES) {
                dev_err(dev, "No available tpm device numbers\n");
                kfree(chip);
                return NULL;
        }

Before the return, devname should be kfree'd


-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


More information about the Bugme-new mailing list