diff options
author | David Howells <dhowells@redhat.com> | 2009-08-27 14:09:06 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-08-27 21:22:08 +0200 |
commit | 9886e836a6a5dbd273dc55b17e713f0a188d137f (patch) | |
tree | 87f8e3d719ae43d5d5d5911d70d6c7b3aa66be32 /fs/splice.c | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 (diff) | |
download | linux-9886e836a6a5dbd273dc55b17e713f0a188d137f.tar.xz linux-9886e836a6a5dbd273dc55b17e713f0a188d137f.zip |
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 <dhowells@redhat.com>
Acked-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/splice.c')
0 files changed, 0 insertions, 0 deletions