]> git.karo-electronics.de Git - karo-tx-linux.git/commit
autofs: fix the return value of autofs4_fill_super
authorRui Xiang <rui.xiang@huawei.com>
Fri, 3 Jan 2014 03:10:20 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:20 +0000 (14:10 +1100)
commitce009c0e3a2a859ba53ce0660dd39e22817bd478
treeb38de2fc9f392e9997b8053675b7df32ffd09fb7
parentd6862fd5345dc890444fd0917ac2228fa6037e87
autofs: fix the return value of autofs4_fill_super

While kzallocing sbi/ino fails, it should return -ENOMEM.

And it should return the err value from autofs_prepare_pipe.

Signed-off-by: Rui Xiang <rui.xiang@huawei.com>
Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/autofs4/inode.c