diff options
author | Ezequiel GarcĂa <ezequiel@vanguardiasur.com.ar> | 2015-10-17 19:55:55 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2015-11-06 23:26:50 +0100 |
commit | 2a130f1aa54c2fb35abfc4d66e0239c80d054210 (patch) | |
tree | 9d350765dcbbe91ea0be08bdd4ce9d331cec6787 /drivers/mtd | |
parent | UBIFS: Fix possible memory leak in ubifs_readdir() (diff) | |
download | linux-2a130f1aa54c2fb35abfc4d66e0239c80d054210.tar.xz linux-2a130f1aa54c2fb35abfc4d66e0239c80d054210.zip |
UBI: Fastmap: Fix PEB array type
The PEB array is an array of __be32, so let's fix the
scan_pool() prototype accordingly.
Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/ubi/fastmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/fastmap.c b/drivers/mtd/ubi/fastmap.c index 0e6bfaf850f3..263b439e21a8 100644 --- a/drivers/mtd/ubi/fastmap.c +++ b/drivers/mtd/ubi/fastmap.c @@ -450,7 +450,7 @@ static void unmap_peb(struct ubi_attach_info *ai, int pnum) * < 0 indicates an internal error. */ static int scan_pool(struct ubi_device *ubi, struct ubi_attach_info *ai, - int *pebs, int pool_size, unsigned long long *max_sqnum, + __be32 *pebs, int pool_size, unsigned long long *max_sqnum, struct list_head *free) { struct ubi_vid_hdr *vh; |