]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
UBI: improve mkvol request validation
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 13 Jul 2008 18:46:24 +0000 (21:46 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 24 Jul 2008 10:32:56 +0000 (13:32 +0300)
commita6ea440769e11c46828cddd20f91ab57261701d5
tree19994608d2721de6484310c60e4a3ff1414cb1ef
parenta5bf6190417cbbf80443a9f71c65b653e13e9982
UBI: improve mkvol request validation

Check that volume name is not shorter than 'name_len'.

No need to copy the trailing zero byte because whole array
was zeroed earlier.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/cdev.c
drivers/mtd/ubi/vmt.c