]> git.baikalelectronics.ru Git - kernel.git/commit
ubi: fix swapped arguments to call to ubi_alloc_aeb
authorColin Ian King <colin.king@canonical.com>
Sat, 15 Oct 2016 16:00:11 +0000 (17:00 +0100)
committerRichard Weinberger <richard@nod.at>
Wed, 19 Oct 2016 22:06:00 +0000 (00:06 +0200)
commite004a4944242d9925758ab8d7221861be50df641
treeb2dd79e913df18993df02f3bca0223c1fe21a6c3
parent6ebea58c1b07bfd11b0a3c5b35a3d7a9c47cca7e
ubi: fix swapped arguments to call to ubi_alloc_aeb

Static analysis by CoverityScan detected the ec and pnum
arguments are in the wrong order on a call to ubi_alloc_aeb.
Swap the order to fix this.

Fixes: a932d9e5d55824e ("UBI: provide helpers to allocate and free aeb elements")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/fastmap.c