The variable copied in llc_ui_sendmsg() cannot be negative and is used in functions that wait for unsigned value, so set it as size_t (like it is in llc_ui_recvmsg())
Signed-off-by: LABBE Corentin <clabbe.montj...@gmail.com> --- net/llc/af_llc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/llc/af_llc.c b/net/llc/af_llc.c index 79b915d..f435b77 100644 --- a/net/llc/af_llc.c +++ b/net/llc/af_llc.c @@ -891,7 +891,8 @@ static int llc_ui_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) int noblock = flags & MSG_DONTWAIT; struct sk_buff *skb; size_t size = 0; - int rc = -EINVAL, copied = 0, hdrlen; + int rc = -EINVAL, hdrlen; + size_t copied = 0; dprintk("%s: sending from %02X to %02X\n", __func__, llc->laddr.lsap, llc->daddr.lsap); -- 2.4.10 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html