]> git.baikalelectronics.ru Git - kernel.git/commit
UBI: fix add_fastmap() to use the vid_hdr passed in argument
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 16 Sep 2016 14:59:10 +0000 (16:59 +0200)
committerRichard Weinberger <richard@nod.at>
Sun, 2 Oct 2016 20:48:14 +0000 (22:48 +0200)
commit72149ce1b2f1ee3905cbbc9600a14e65b0163deb
treefed568a813892fec2061c88b2a23ecbd23afd09d
parent072a5707ec440024d4a0e19c20c9458b5d8c2a06
UBI: fix add_fastmap() to use the vid_hdr passed in argument

add_fastmap() is passed a ubi_vid_hdr pointer in argument, but is
referencing the global vidh pointer.
Even if this is correct from a functional point of view (vidh and vid_hdr
point to the same object), it is confusing.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/attach.c