Skip to content

Commit d94aa14

Browse files
wpwrakSebastien Bourdeauducq
authored and
Sebastien Bourdeauducq
committedNov 9, 2011
yaffs.c: ycb_fsunmount already cleans up, don't do it again in unmount_handler
This caused an attempt to run yaffs_flush_whole_cache with dev->cache already deallocated, hanging the system.
1 parent 767197b commit d94aa14

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed
 

‎src/yaffs.c

-2
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,6 @@ static void unmount_handler(struct yaffs_dev *dev, void *os_context)
195195
}
196196
}
197197

198-
yaffs_flush_whole_cache(dev);
199-
yaffs_deinitialise(dev);
200198
softc->free_os_context(dev, os_context);
201199
free(softc);
202200
free(dev);

0 commit comments

Comments
 (0)
Please sign in to comment.