From: David Howells Date: Thu, 27 Aug 2009 12:09:06 +0000 (+0100) Subject: AFS: Stop readlink() on AFS crashing due to NULL 'file' ptr X-Git-Tag: v2.6.31-rc8~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9886e836a6a5dbd273dc55b17e713f0a188d137f;p=pandora-kernel.git AFS: Stop readlink() on AFS crashing due to NULL 'file' ptr kAFS crashes when asked to read a symbolic link because page_getlink() passes a NULL file pointer to read_mapping_page(), but afs_readpage() expects a file pointer from which to extract a key. Modify afs_readpage() to request the appropriate key from the calling process's keyrings if a file struct is not supplied with one attached. Signed-off-by: David Howells Acked-by: Anton Blanchard Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed