UBI: block: Fix error path on alloc_workqueue failure
authorHelmut Schaa <helmut.schaa@googlemail.com>
Tue, 20 May 2014 09:13:48 +0000 (11:13 +0200)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tue, 27 May 2014 12:08:29 +0000 (15:08 +0300)
commit151d6b21f973c585efa052b0ff0fab473ef47831
tree9acb67c26d367d3136fa1d4b7423e555bc6b0292
parentdac3698147655aba4d71a8e67d6dd46d7a86154f
UBI: block: Fix error path on alloc_workqueue failure

Otherwise we'd return a random value if allocation of the workqueue fails.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/ubi/block.c
This page took 0.025362 seconds and 5 git commands to generate.