From: Alexey Dobriyan <adobriyan@gmail.com>

Cc: Shaun Pereira <spereira@tusc.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 net/x25/af_x25.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN net/x25/af_x25.c~x25-selective-sub-address-matching-with-fix net/x25/af_x25.c
--- 25/net/x25/af_x25.c~x25-selective-sub-address-matching-with-fix	2005-05-31 14:14:59.000000000 -0700
+++ 25-akpm/net/x25/af_x25.c	2005-05-31 14:14:59.000000000 -0700
@@ -1338,7 +1338,7 @@ static int x25_ioctl(struct socket *sock
 				break;
 			rc = -EFAULT;
 			if (copy_from_user(&sub_addr, argp,
-					sizeof(&sub_addr)))
+					sizeof(sub_addr)))
 				break;
 		 	rc = -EINVAL;
 			if(sub_addr.cudmatchlength > X25_MAX_CUD_LEN)
_