]> 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)
commita28a050e74e1d803a6386d4222a939ca557e8804
treec0efad63bf0a88ebedfe79a49e365844a4d066b0
parent7255ae7e45089556ae4aa278fca1bcd390efa8f5
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