X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=drivers%2Fmtd%2Fubi%2Fupd.c;h=d1802b054bfee0da7a947d8c100e81f0e4933d19;hp=068a2466d060fe20e359ad7a49079f70f1f6cf5e;hb=7aae79649d6a88e7104d4d22aa4ba21f4e699e40;hpb=5476a24d66a7d275ed1e0a3113f26c1158684462 diff --git a/drivers/mtd/ubi/upd.c b/drivers/mtd/ubi/upd.c index 068a2466d060..d1802b054bfe 100644 --- a/drivers/mtd/ubi/upd.c +++ b/drivers/mtd/ubi/upd.c @@ -197,7 +197,7 @@ int ubi_start_leb_change(struct ubi_device *ubi, struct ubi_volume *vol, vol->ch_lnum = req->lnum; vol->ch_dtype = req->dtype; - vol->upd_buf = vmalloc(req->bytes); + vol->upd_buf = vmalloc(ALIGN((int)req->bytes, ubi->min_io_size)); if (!vol->upd_buf) return -ENOMEM;