diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-05-06 09:12:54 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-07-18 09:53:08 -0400 |
commit | 92ad8f37509a7d9d5dd6e0092211b092a7ca7fb1 (patch) | |
tree | 96c0f9c524b80e8d1d247e3f462c0c0d6fb782a5 /drivers/mtd/ubi/build.c | |
parent | 79b510c0f21174f4bd055d1aab156e548ae3a5f2 (diff) |
UBI: use vmalloc for large buffers
UBI allocates temporary buffers of PEB size, which may be 256KiB.
Use vmalloc instead of kmalloc for such big temporary buffers.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/build.c')
-rw-r--r-- | drivers/mtd/ubi/build.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index 555d594d1811..054a88dcc7a1 100644 --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c | |||
@@ -650,7 +650,7 @@ static void detach_mtd_dev(struct ubi_device *ubi) | |||
650 | uif_close(ubi); | 650 | uif_close(ubi); |
651 | ubi_eba_close(ubi); | 651 | ubi_eba_close(ubi); |
652 | ubi_wl_close(ubi); | 652 | ubi_wl_close(ubi); |
653 | kfree(ubi->vtbl); | 653 | vfree(ubi->vtbl); |
654 | put_mtd_device(ubi->mtd); | 654 | put_mtd_device(ubi->mtd); |
655 | kfree(ubi_devices[ubi_num]); | 655 | kfree(ubi_devices[ubi_num]); |
656 | ubi_devices[ubi_num] = NULL; | 656 | ubi_devices[ubi_num] = NULL; |