From ef8aef55ce61fd0e2af798695f7386ac756ae1e7 Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Thu, 6 Sep 2007 14:06:35 +0100 Subject: [PATCH] [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 Signed-off-by: David S. Miller --- Reading git-format-patch failed