Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=00cedfa67b3ab1588e2665eabd9843a3d8dd1dfc
Commit:     00cedfa67b3ab1588e2665eabd9843a3d8dd1dfc
Parent:     e6d5a11dad44b8ae18ca8fc4ecb72ccccfa0a2d2
Author:     Florin Malita <[EMAIL PROTECTED]>
AuthorDate: Sat Oct 13 12:27:20 2007 -0400
Committer:  Pierre Ossman <[EMAIL PROTECTED]>
CommitDate: Wed Oct 17 21:33:46 2007 +0200

    mmc: possible leak in mmc_read_ext_csd
    
    The exception path associated with an invalid ext_csd_struct returns
    without freeing ext_csd.
    
    Coverity CID 1909.
    
    Signed-off-by: Florin Malita
    Signed-off-by: Pierre Ossman <[EMAIL PROTECTED]>
---
 drivers/mmc/core/mmc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index 65fe288..68c0e3b 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -213,7 +213,8 @@ static int mmc_read_ext_csd(struct mmc_card *card)
                printk(KERN_ERR "%s: unrecognised EXT_CSD structure "
                        "version %d\n", mmc_hostname(card->host),
                        ext_csd_struct);
-               return -EINVAL;
+               err = -EINVAL;
+               goto out;
        }
 
        if (ext_csd_struct >= 2) {
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to