From: Xi Wang Date: Fri, 3 Feb 2012 14:55:36 +0000 (-0500) Subject: ceph: avoid panic with mismatched symlink sizes in fill_inode() X-Git-Tag: v3.4-rc1~76^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=810339ec2fae5cbd0164b8acde7fb65652755864;p=pandora-kernel.git ceph: avoid panic with mismatched symlink sizes in fill_inode() Return -EINVAL rather than panic if iinfo->symlink_len and inode->i_size do not match. Also use kstrndup rather than kmalloc/memcpy. Signed-off-by: Xi Wang Reviewed-by: Alex Elder --- Reading git-diff-tree failed