Re: x25-selective-sub-address-matching-with.patch added to -mm tree

From: Alexey Dobriyan
Date: Tue May 31 2005 - 11:37:10 EST


On Tuesday 31 May 2005 13:32, akpm@xxxxxxxx wrote:
> x25: selective sub-address matching with call user data

> --- 25/net/x25/af_x25.c~x25-selective-sub-address-matching-with
> +++ 25-akpm/net/x25/af_x25.c

> @@ -1325,6 +1331,23 @@ static int x25_ioctl(struct socket *sock

> + case SIOCX25SCUDMATCHLEN: {
> + struct x25_subaddr sub_addr;

> + if (copy_from_user(&sub_addr, argp,
> + sizeof(&sub_addr)))
^^^

You want sizeof(sub_addr) here. If other people won't NAKYAIOCTL.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/