NFS: Error out when register_shrinker fail in register_nfs_fs
authorKinglong Mee <kinglongmee@gmail.com>
Thu, 30 Jul 2015 13:41:08 +0000 (21:41 +0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 12 Aug 2015 18:42:23 +0000 (14:42 -0400)
commit5ef8d792fabedeb932375b23735bc7a1a3e8684d
tree44953db1bed63c36a440e3cd8752d08873520624
parentefcbc04e16dfa95fef76309f89710dd1d99a5453
NFS: Error out when register_shrinker fail in register_nfs_fs

Commit 1d3d4437ea "vmscan: per-node deferred work" have made
register_shrinker can return an intergater error.

If register_shrinker() fail, the later unregister_shrinker() will
 cause a NULL pointer access.

v2, same as v1.

Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/super.c