summaryrefslogtreecommitdiff
path: root/include/media/sii9234.h
diff options
context:
space:
mode:
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>2014-01-28 05:07:12 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-01-28 09:02:40 +0400
commit53e0ee9fc59cb17fcad57e481b5889c791afe6c3 (patch)
treed7138cd4711ec89420ec9352d60910aade05cde2 /include/media/sii9234.h
parente7ca2552369c1dfe0216c626baf82c3d83ec36bb (diff)
downloadlinux-53e0ee9fc59cb17fcad57e481b5889c791afe6c3.tar.xz
splice: fix unexpected size truncation
@splice_desc.total_len is 32 bit(unsigned int) which is used to store the size passed from userspace which is 64 bit(size_t) so that the size is unexpectedly truncated That means vmsplice can not work if the size passed from userspace is >= 4G, for example, we noticed in vmsplice, splice-reader does not do anything and splice-writer is waiting for available buffer forever if the size is 4G Fix it by extending @splice_desc.total_len to 64 bits as well Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> Cc: Jens Axboe <axboe@kernel.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/media/sii9234.h')
0 files changed, 0 insertions, 0 deletions