Skip to content

Commit

Permalink
yaffs.c: ycb_fsunmount already cleans up, don't do it again in unmoun…
Browse files Browse the repository at this point in the history
…t_handler

This caused an attempt to run yaffs_flush_whole_cache with dev->cache
already deallocated, hanging the system.
  • Loading branch information
wpwrak authored and Sebastien Bourdeauducq committed Nov 9, 2011
1 parent 767197b commit d94aa14
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/yaffs.c
Expand Up @@ -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);
Expand Down

0 comments on commit d94aa14

Please sign in to comment.