patch-2.4.9 linux/net/irda/af_irda.c

Next file: linux/net/khttpd/datasending.c
Previous file: linux/net/ipx/af_ipx.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.8/linux/net/irda/af_irda.c linux/net/irda/af_irda.c
@@ -1400,7 +1400,7 @@
 			continue;
 		}
 
-		chunk = min(skb->len, size);
+		chunk = min(unsigned int, skb->len, size);
 		if (memcpy_toiovec(msg->msg_iov, skb->data, chunk)) {
 			skb_queue_head(&sk->receive_queue, skb);
 			if (copied == 0)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)