diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-09-09 22:24:52 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-09-09 22:24:52 +0000 |
commit | 1a7287a8a4eeca7fc2a677b983b25877350d1439 (patch) | |
tree | 6ace3fe5230b5ea355c054a72f400ee026710580 /nuttx/drivers/mmcsd/mmcsd_sdio.c | |
parent | 0f24fe7e11df5bd1551e1f89d9cb6d7a15243ebb (diff) | |
download | px4-nuttx-1a7287a8a4eeca7fc2a677b983b25877350d1439.tar.gz px4-nuttx-1a7287a8a4eeca7fc2a677b983b25877350d1439.tar.bz2 px4-nuttx-1a7287a8a4eeca7fc2a677b983b25877350d1439.zip |
Some error handling bugs noted by Ronen Vainish
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5122 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/mmcsd/mmcsd_sdio.c')
-rw-r--r-- | nuttx/drivers/mmcsd/mmcsd_sdio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nuttx/drivers/mmcsd/mmcsd_sdio.c b/nuttx/drivers/mmcsd/mmcsd_sdio.c index 90c73261a..d0bc6659c 100644 --- a/nuttx/drivers/mmcsd/mmcsd_sdio.c +++ b/nuttx/drivers/mmcsd/mmcsd_sdio.c @@ -3171,7 +3171,9 @@ errout_with_buffers: rwb_uninitialize(&priv->rwbuffer); errout_with_hwinit: #endif - mmcsd_hwuninitialize(priv); + mmcsd_hwuninitialize(priv); /* This will free the private data structure */ + return ret; + errout_with_alloc: kfree(priv); return ret; |