summaryrefslogtreecommitdiff
path: root/drivers/leds/leds-wrap.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@poochiereds.net>2015-03-31 19:03:28 +0300
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-04-23 21:42:27 +0300
commit3f9400981691f6845e5c22b962500742b80a5484 (patch)
tree5f9aacd13929b2e38067e8c34feb529a91696540 /drivers/leds/leds-wrap.c
parent5d05e54af3cdbb13cf19c557ff2184781b91a22c (diff)
downloadlinux-3f9400981691f6845e5c22b962500742b80a5484.tar.xz
sunrpc: make debugfs file creation failure non-fatal
v2: gracefully handle the case where some dentry pointers end up NULL and be more dilligent about zeroing out dentry pointers We currently have a problem that SELinux policy is being enforced when creating debugfs files. If a debugfs file is created as a side effect of doing some syscall, then that creation can fail if the SELinux policy for that process prevents it. This seems wrong. We don't do that for files under /proc, for instance, so Bruce has proposed a patch to fix that. While discussing that patch however, Greg K.H. stated: "No kernel code should care / fail if a debugfs function fails, so please fix up the sunrpc code first." This patch converts all of the sunrpc debugfs setup code to be void return functins, and the callers to not look for errors from those functions. This should allow rpc_clnt and rpc_xprt creation to work, even if the kernel fails to create debugfs files for some reason. Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: "J. Bruce Fields" <bfields@fieldses.org> Signed-off-by: Jeff Layton <jeff.layton@primarydata.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'drivers/leds/leds-wrap.c')
0 files changed, 0 insertions, 0 deletions