]> git.hungrycats.org Git - linux/commit
iovec: make sure the caller actually wants anything in memcpy_fromiovecend
authorSasha Levin <sasha.levin@oracle.com>
Fri, 1 Aug 2014 03:00:35 +0000 (23:00 -0400)
committerJiri Slaby <jslaby@suse.cz>
Tue, 19 Aug 2014 15:15:01 +0000 (17:15 +0200)
commitcb3770c1f6b13463dcb48802d2cc99591651fa63
tree612feea91bd5cce25864461efd13166cd3b04b21
parent4b29e9c0a64a0ce0256505315cc3f5819ddbec64
iovec: make sure the caller actually wants anything in memcpy_fromiovecend

[ Upstream commit 06ebb06d49486676272a3c030bfeef4bd969a8e6 ]

Check for cases when the caller requests 0 bytes instead of running off
and dereferencing potentially invalid iovecs.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
net/core/iovec.c