Chao Yu a1fe33af5f 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>
2015-06-02 11:41:38 +02:00
..
2012-08-31 17:32:58 +03:00
2015-03-25 11:08:41 +02:00
2012-05-16 19:53:46 +03:00
2015-03-25 11:08:41 +02:00
2015-03-25 11:08:41 +02:00
2015-03-25 11:08:41 +02:00
2015-03-25 11:08:41 +02:00