X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=patches%2Fyaffs_linux_allocator.c;h=395f4eac548953198785806e66c7dd8bf2045d5f;hp=b538776e497413e8df734692d66ffdc5efcaa1d7;hb=fb1a7ee223619260cfd9b6366fd78747cc572cd5;hpb=84f122f301b6a27295641fcbde3a6fbcfea78a99 diff --git a/patches/yaffs_linux_allocator.c b/patches/yaffs_linux_allocator.c index b538776..395f4ea 100644 --- a/patches/yaffs_linux_allocator.c +++ b/patches/yaffs_linux_allocator.c @@ -67,7 +67,7 @@ void yaffs_deinit_raw_tnodes_and_objs(struct yaffs_dev *dev) YBUG(); } - YFREE(allocator); + kfree(allocator); } else { T(YAFFS_TRACE_ALWAYS, @@ -114,7 +114,7 @@ void yaffs_init_raw_tnodes_and_objs(struct yaffs_dev *dev) else if(mount_id >= 10){ T(YAFFS_TRACE_ALWAYS,(TSTR("Bad mount_id %u\n"),mount_id)); } else { - allocator = YMALLOC(sizeof(yaffs_Allocator)); + allocator = kmalloc(sizeof(yaffs_Allocator)); memset(allocator,0,sizeof(yaffs_Allocator)); dev->allocator = allocator;