UBI: return -ENOMEM upon failing vmalloc
authorStefan Roese <sr@denx.de>
Wed, 10 Dec 2008 09:42:54 +0000 (10:42 +0100)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 10 Dec 2008 12:28:48 +0000 (14:28 +0200)
commitad5942bad6addcf9697a74413b517d9724d803a4
treeefaf29500212d1ae0be78377e9aa3cc607959719
parent8e26e1d7bce73acf6f995a4d252610e46ee831a5
UBI: return -ENOMEM upon failing vmalloc

Return with correct error code (-ENOMEM) from ubi_attach_mtd_dev() upon
failing vmalloc().

Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/build.c