mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user