Permalink
Browse files

yaffs.c: ycb_fsunmount already cleans up, don't do it again in unmoun…

…t_handler

This caused an attempt to run yaffs_flush_whole_cache with dev->cache
already deallocated, hanging the system.
  • Loading branch information...
1 parent 767197b commit d94aa141d2d72726bd34ac4072a04f11f4467255 @wpwrak wpwrak committed with sbourdeauducq Nov 9, 2011
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/yaffs.c
View
@@ -195,8 +195,6 @@ static void unmount_handler(struct yaffs_dev *dev, void *os_context)
}
}
- yaffs_flush_whole_cache(dev);
- yaffs_deinitialise(dev);
softc->free_os_context(dev, os_context);
free(softc);
free(dev);

0 comments on commit d94aa14

Please sign in to comment.