aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorHerbert Xu <[email protected]>2007-09-06 14:06:35 +0100
committerDavid S. Miller <davem@kimchee.(none)>2007-09-11 10:29:07 +0200
commitef8aef55ce61fd0e2af798695f7386ac756ae1e7 (patch)
treedd3d30a25e69fa94dcffa024e5a87758c0f6ba24 /include/linux/debugobjects.h
parent2fbe43f6f631dd7ce19fb1499d6164a5bdb34568 (diff)
[NET]: Do not dereference iov if length is zero
When msg_iovlen is zero we shouldn't try to dereference msg_iov. Right now the only thing that tries to do so is skb_copy_and_csum_datagram_iovec. Since the total length should also be zero if msg_iovlen is zero, it's sufficient to check the total length there and simply return if it's zero. Signed-off-by: Herbert Xu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions