summaryrefslogtreecommitdiff
path: root/drivers/pci/setup-bus.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2010-05-12 18:34:03 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-05-13 05:23:58 +0400
commit7ac512aa8237c43331ffaf77a4fd8b8d684819ba (patch)
tree0fe199f0364c5b54012691c9e4ff4a11767d1797 /drivers/pci/setup-bus.c
parent91af70814105f4c05e6e11b51c3269907b71794b (diff)
downloadlinux-7ac512aa8237c43331ffaf77a4fd8b8d684819ba.tar.xz
CacheFiles: Fix error handling in cachefiles_determine_cache_security()
cachefiles_determine_cache_security() is expected to return with a security override in place. However, if set_create_files_as() fails, we fail to do this. In this case, we should just reinstate the security override that was set by the caller. Furthermore, if set_create_files_as() fails, we should dispose of the new credentials we were in the process of creating. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/pci/setup-bus.c')
0 files changed, 0 insertions, 0 deletions