[PATCH] TUN/TAP bug-fix, linux-driver

From: Anders Nystrom (andesr@southpole.se)
Date: Mon Oct 23 2000 - 12:25:04 EST


Hi,

It is a bug in the TUN/TAP-driver for Linux 2.4.0-test9.
This patch call skb_put() with the right variable in tun_get_user().

Regards
   / andesr

-- 
Anders Nystrom                  Snigel-post:
Telefon: 070-73 58 369          Karhusgrand 5:708
Epost: andesr@southpole.se      977 54  LULEA

--- linux/drivers/net/tun.c.orig Sat Sep 23 00:19:30 2000 +++ linux/drivers/net/tun.c Mon Oct 23 19:21:27 2000 @@ -214,7 +214,7 @@ } skb_reserve(skb, 2); - copy_from_user(skb_put(skb, count), ptr, len); + copy_from_user(skb_put(skb, len), ptr, len); skb->dev = &tun->dev; switch (tun->flags & TUN_TYPE_MASK) {


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 23 2000 - 21:00:21 EST