X25 remove bkl in call user data length ioctl
Subsystems (3)
PATCH 5/5 X25 remove bkl in call user data length ioctl
Signed-off-by Andrew Hendry <[email protected]>
--- net/x25/af_x25.c | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-)
net/x25/af_x25.c +6 -5
@@ -1562,19 +1562,20 @@ out_dtefac_release:case SIOCX25SCUDMATCHLEN : {struct x25_subaddr sub_addr; rc = -EINVAL ; -lock_kernel (); +lock_sock (sk);if (sk->sk_state !=TCP_CLOSE ) -break ; + goto out_cud_release; rc = -EFAULT ;if (copy_from_user (&sub_addr, argp,sizeof (sub_addr))) -break ; + goto out_cud_release; rc = -EINVAL ;if (sub_addr.cudmatchlength >X25_MAX_CUD_LEN ) -break ; + goto out_cud_release; x25->cudmatchlength = sub_addr.cudmatchlength; -unlock_kernel (); rc =0 ; +out_cud_release: +release_sock (sk);break ; }
Signature · 1 line
1.7.1
From: Andrew Hendry <[email protected]>
Date: Thu, 25 Nov 2010 23:18:45 +1100
Quoted 2 lines
Signed-off-by Andrew Hendry <[email protected]>
Applied.