]> git.karo-electronics.de Git - karo-tx-linux.git/commit
UBI: make vid_hdr non-static
authorRichard Weinberger <rw@linutronix.de>
Thu, 22 Dec 2011 15:12:57 +0000 (16:12 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Jan 2012 00:13:25 +0000 (16:13 -0800)
commitf15be6f6ce84f1e776abfe51bf52f3aaf4d4e5e9
tree8289e11b3f5f3cbd1a852e843590756cf9e8a357
parenta6027dbd01c08236f2182ddb6c22aa5712fed7c6
UBI: make vid_hdr non-static

commit 6bdccffe8c4268d02f71873102131fb6ed37ed9a upstream.

Remove 'static' modifier from the 'vid_hdr' local variable. I do not know
how it slipped in, but this is a bug and will break UBI if someone attaches
2 UBI volumes at the same time.

Artem: amended teh commit message, added -stable.

Signed-off-by: Richard Weinberger <rw@linutronix.de>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/mtd/ubi/vtbl.c