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 <drzeus@drzeus.cx>
This commit is contained in:
Florin Malita authored and Pierre Ossman committed 2007-10-17 21:33:46 +02:00
1 parent e6d5a11dad
commit 00cedfa67b
1 file changed
+2 -1
+2 -1
View File
@@ -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) {