diff options
author | Amir Goldstein <amir73il@gmail.com> | 2017-07-11 15:58:35 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-27 15:08:07 -0700 |
commit | 97de6f34b42b079befb14e58e7f8b0d6e989c014 (patch) | |
tree | 62336fd95a486855931b8fc442e569555121e45b /Documentation/w1/masters | |
parent | 5cf84432b422e92775aef5c43b0dfc58585fabb0 (diff) |
ovl: fix random return value on mount
commit 8fc646b44385ff0a9853f6590497e43049eeb311 upstream.
On failure to prepare_creds(), mount fails with a random
return value, as err was last set to an integer cast of
a valid lower mnt pointer or set to 0 if inodes index feature
is enabled.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 3fe6e52f0626 ("ovl: override creds with the ones from ...")
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/w1/masters')
0 files changed, 0 insertions, 0 deletions