patch-2.1.16 linux/net/ipv6/af_inet6.c
Next file: linux/net/ipv6/tcp_ipv6.c
Previous file: linux/net/ipv4/udp.c
Back to the patch index
Back to the overall index
- Lines: 51
- Date:
Wed Dec 18 12:07:55 1996
- Orig file:
v2.1.15/linux/net/ipv6/af_inet6.c
- Orig date:
Thu Dec 12 19:37:30 1996
diff -u --recursive --new-file v2.1.15/linux/net/ipv6/af_inet6.c linux/net/ipv6/af_inet6.c
@@ -7,7 +7,7 @@
*
* Adapted from linux/net/ipv4/af_inet.c
*
- * $Id: af_inet6.c,v 1.13 1996/10/31 19:47:17 roque Exp $
+ * $Id: af_inet6.c,v 1.6 1996/12/12 19:22:09 davem Exp $
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -127,7 +127,7 @@
case SOCK_SEQPACKET:
if (protocol && protocol != IPPROTO_TCP)
{
- kfree_s((void *)sk, sizeof(*sk));
+ sk_free(sk);
return(-EPROTONOSUPPORT);
}
protocol = IPPROTO_TCP;
@@ -139,7 +139,7 @@
case SOCK_DGRAM:
if (protocol && protocol != IPPROTO_UDP)
{
- kfree_s((void *)sk, sizeof(*sk));
+ sk_free(sk);
return(-EPROTONOSUPPORT);
}
protocol = IPPROTO_UDP;
@@ -151,12 +151,12 @@
case SOCK_RAW:
if (!suser())
{
- kfree_s((void *)sk, sizeof(*sk));
+ sk_free(sk);
return(-EPERM);
}
if (!protocol)
{
- kfree_s((void *)sk, sizeof(*sk));
+ sk_free(sk);
return(-EPROTONOSUPPORT);
}
prot = &rawv6_prot;
@@ -165,7 +165,7 @@
sk->num = protocol;
break;
default:
- kfree_s((void *)sk, sizeof(*sk));
+ sk_free(sk);
return(-ESOCKTNOSUPPORT);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov