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
This commit is contained in:
patacongo
2012-09-09 22:24:52 +00:00
parent 3800458aa5
commit 08ea0ce740
3 changed files with 9 additions and 2 deletions
+3 -1
View File
@@ -3171,7 +3171,9 @@ errout_with_buffers:
#if defined(CONFIG_FS_WRITEBUFFER) || defined(CONFIG_FS_READAHEAD)
rwb_uninitialize(&priv->rwbuffer);
errout_with_hwinit:
#endif
#endif
mmcsd_hwuninitialize(priv); /* This will free the private data structure */
return ret;
errout_with_alloc:
kfree(priv);