patch-2.2.19 linux/drivers/net/cosa.c

Next file: linux/drivers/net/cs89x0.c
Previous file: linux/drivers/net/Space.c
Back to the patch index
Back to the overall index

diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/drivers/net/cosa.c linux/drivers/net/cosa.c
@@ -817,7 +817,7 @@
 	up(&chan->rsem);
 
 	if (copy_to_user(buf, kbuf, count)) {
-		kfree(buf);
+		kfree(kbuf);
 		return -EFAULT;
 	}
 	kfree(kbuf);

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