staging: android: check the return value of register_shrinker
authorXiongwei Song <sxwjean@gmail.com>
Thu, 4 Jan 2018 23:34:36 +0000 (07:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jan 2018 15:37:18 +0000 (16:37 +0100)
commitfb02205a18ac65aaccdce371ad2039c1edbde9a7
treef951cb9d8987ee9828fd9f89274c8581fe995db3
parent47ac54e877c386653070c7a6f57aa12a45ce80e1
staging: android: check the return value of register_shrinker

register_shrinker call is made in ashmem_init, it may return error code,
so we need to check it.

Signed-off-by: Xiongwei Song <sxwjean@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ashmem.c