aboutsummaryrefslogtreecommitdiff
path: root/nuttx/drivers/mmcsd
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-09-09 22:24:52 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-09-09 22:24:52 +0000
commit2b424e0424b403fa82f07cc372267645d7701edf (patch)
tree6ace3fe5230b5ea355c054a72f400ee026710580 /nuttx/drivers/mmcsd
parenta18319347303bc29500f2e327540ffeac7143724 (diff)
downloadpx4-firmware-2b424e0424b403fa82f07cc372267645d7701edf.tar.gz
px4-firmware-2b424e0424b403fa82f07cc372267645d7701edf.tar.bz2
px4-firmware-2b424e0424b403fa82f07cc372267645d7701edf.zip
Some error handling bugs noted by Ronen Vainish
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5122 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/drivers/mmcsd')
-rw-r--r--nuttx/drivers/mmcsd/mmcsd_sdio.c4
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;