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 <xi.wang@gmail.com> Reviewed-by:
Alex Elder <elder@dreamhost.com>
Showing
Please register or sign in to comment