Remounting a device would cause a segfault because the
device's temp_buffer would not be reinitialised. Resulting
in a null pointer being called as a function, creating the segfault.
Signed-off-by: Timothy Manning <codedraftsman@gmail.com>
}
+/* Frees all the temp_buffer objects in the yaffs_dev instance
+*/
void yaffs_release_temp_buffer(struct yaffs_dev *dev, u8 *buffer)
{
int i;
kfree(dev->checkpt_block_list);
dev->checkpt_block_list = NULL;
+ dev->ll_init = 0;
dev->is_mounted = 0;
yaffs_deinit_nand(dev);