[Linux-cluster] [PATCH] Fix usage of sk_alloc in cman-kernel (2.6.12rc2)
Fabio Massimo Di Nitto
fabbione at fabbione.net
Sat Apr 16 18:35:34 UTC 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Fabio Massimo Di Nitto wrote:
> Hi everybody,
>
> @@ -918,14 +918,14 @@
> return;
> }
>
> -static struct sock *cl_alloc_sock(struct socket *sock, int gfp)
> +static struct sock *cl_alloc_sock(struct socket *sock, int gfp, int protocol)
> {
> struct sock *sk;
> struct cluster_sock *c;
>
> if ((sk =
> - sk_alloc(AF_CLUSTER, gfp, sizeof (struct cluster_sock),
> - cluster_sk_cachep)) == NULL)
> + sk_alloc(AF_CLUSTER, gpf, &cl_proto,
> + 1)) == NULL)
> goto no_sock;
>
> if (sock) {
Meh.. sorry.. i just realized that i did a typo in this hunk s/gpf/gfp.
fabio
- --
Self-Service law:
The last available dish of the food you have decided to eat, will be
inevitably taken from the person in front of you.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCYVr1hCzbekR3nhgRAqMSAJ90YRnv4frDEDyqBSQeJ5xm+1h8/wCfUbny
Ed+7DiMfJ0SWD01pv1uCKKA=
=h65P
-----END PGP SIGNATURE-----
More information about the Linux-cluster
mailing list