Skip to contentSkip to conversation

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

DISCUSSION Alexey Dobriyan 1 participant 1 message May 31, 2005 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

net/x25/af_x25.c static int x25_ioctl(struct socket *sock · line 1336

Quoted 12 lines · On Tuesday 31 May 2005 13:32, [email protected] wrote:

x25: selective sub-address matching with call user data

net/x25/af_x25.c renamed from net/x25/af_x25.c~x25-selective-sub-address-matching-with +4 -0
@@ -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.