binderfs: rework binderfs_fill_super()
authorChristian Brauner <christian@brauner.io>
Mon, 21 Jan 2019 10:48:04 +0000 (11:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 11:25:53 +0000 (12:25 +0100)
commit36975fc3e5f241cc4f45df4ab4624d7d5199d9ed
treec0efad63bf0a88ebedfe79a49e365844a4d066b0
parente98e6fa18636609f14a7f866524950a783cf4fbf
binderfs: rework binderfs_fill_super()

Al pointed out that on binderfs_fill_super() error
deactivate_locked_super() will call binderfs_kill_super() so all of the
freeing and putting we currently do in binderfs_fill_super() is unnecessary
and buggy. Let's simply return errors and let binderfs_fill_super() take
care of cleaning up on error.

Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Christian Brauner <christian@brauner.io>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binderfs.c