]> git.karo-electronics.de Git - linux-beck.git/commit
ubifs: fix to check error code of register_shrinker
authorChao Yu <chao2.yu@samsung.com>
Mon, 18 May 2015 08:43:02 +0000 (16:43 +0800)
committerRichard Weinberger <richard@nod.at>
Tue, 2 Jun 2015 09:41:38 +0000 (11:41 +0200)
commita1fe33af5f8c5f5aebe68d22125d19e48b8e601c
treed86bdb38a53af379bf76888f779214deb6d9edb0
parent2bf50d42f3a418153d2964ca0f25655177f36445
ubifs: fix to check error code of register_shrinker

register_shrinker() in ubifs_init() can fail due to fail to call kzalloc.
This patch fixes to check the return value of register_shrinker, otherwise
our shrinker may be unregistered after ubifs initialized successfully.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/super.c