]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf62d6a1877edb8477c84065851f965becab5746b
treec0efad63bf0a88ebedfe79a49e365844a4d066b0
parent88aab75aee3ac2c80029038b694114e332a16bd9
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