From: David Howells Date: Wed, 12 May 2010 14:34:03 +0000 (+0100) Subject: CacheFiles: Fix error handling in cachefiles_determine_cache_security() X-Git-Tag: v2.6.34~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ac512aa8237c43331ffaf77a4fd8b8d684819ba;p=pandora-kernel.git 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 Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed