Staging
v0.7.0
https://github.com/torvalds/linux
Revision bda1cda54b7e1654e9416fec76e6342847b25216 authored by Patrick Boettcher on 07 September 2008, 19:04:38 UTC, committed by Mauro Carvalho Chehab on 05 October 2008, 02:01:21 UTC
The array size of 'shadow' still needs to be fixed in order to not overflow when reading register 0x00.

Thanks to Oliver Endriss for pointing that out.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
1 parent c18c5ff
Raw File
Tip revision: bda1cda54b7e1654e9416fec76e6342847b25216 authored by Patrick Boettcher on 07 September 2008, 19:04:38 UTC
V4L/DVB (9043): S5H1420: Fix size of shadow-array to avoid overflow
Tip revision: bda1cda
symlink.c
/*
 *  linux/fs/sysv/symlink.c
 *
 *  Handling of System V filesystem fast symlinks extensions.
 *  Aug 2001, Christoph Hellwig (hch@infradead.org)
 */

#include "sysv.h"
#include <linux/namei.h>

static void *sysv_follow_link(struct dentry *dentry, struct nameidata *nd)
{
	nd_set_link(nd, (char *)SYSV_I(dentry->d_inode)->i_data);
	return NULL;
}

const struct inode_operations sysv_fast_symlink_inode_operations = {
	.readlink	= generic_readlink,
	.follow_link	= sysv_follow_link,
};
back to top