Lines Matching refs:kaddrs
887 struct sockaddr *kaddrs; in sctp_setsockopt_bindx() local
906 kaddrs = kmalloc(addrs_size, GFP_KERNEL); in sctp_setsockopt_bindx()
907 if (unlikely(!kaddrs)) in sctp_setsockopt_bindx()
910 if (__copy_from_user(kaddrs, addrs, addrs_size)) { in sctp_setsockopt_bindx()
911 kfree(kaddrs); in sctp_setsockopt_bindx()
916 addr_buf = kaddrs; in sctp_setsockopt_bindx()
925 kfree(kaddrs); in sctp_setsockopt_bindx()
936 err = sctp_bindx_add(sk, kaddrs, addrcnt); in sctp_setsockopt_bindx()
939 err = sctp_send_asconf_add_ip(sk, kaddrs, addrcnt); in sctp_setsockopt_bindx()
943 err = sctp_bindx_rem(sk, kaddrs, addrcnt); in sctp_setsockopt_bindx()
946 err = sctp_send_asconf_del_ip(sk, kaddrs, addrcnt); in sctp_setsockopt_bindx()
955 kfree(kaddrs); in sctp_setsockopt_bindx()
966 struct sockaddr *kaddrs, in __sctp_connect() argument
1002 addr_buf = kaddrs; in __sctp_connect()
1133 asoc, kaddrs, err); in __sctp_connect()
1207 struct sockaddr *kaddrs; in __sctp_setsockopt_connectx() local
1220 kaddrs = kmalloc(addrs_size, GFP_KERNEL); in __sctp_setsockopt_connectx()
1221 if (unlikely(!kaddrs)) in __sctp_setsockopt_connectx()
1224 if (__copy_from_user(kaddrs, addrs, addrs_size)) { in __sctp_setsockopt_connectx()
1227 err = __sctp_connect(sk, kaddrs, addrs_size, assoc_id); in __sctp_setsockopt_connectx()
1230 kfree(kaddrs); in __sctp_setsockopt_connectx()