return 0;
} else if (optlen == sizeof(struct sctp_assoc_value)) {
pr_warn_ratelimited(DEPRECATED
+ "%s (pid %d) "
"Use of struct sctp_assoc_value in delayed_ack socket option.\n"
- "Use struct sctp_sack_info instead\n");
+ "Use struct sctp_sack_info instead\n",
+ current->comm, task_pid_nr(current));
if (copy_from_user(¶ms, optval, optlen))
return -EFAULT;
if (optlen == sizeof(int)) {
pr_warn_ratelimited(DEPRECATED
+ "%s (pid %d) "
"Use of int in maxseg socket option.\n"
- "Use struct sctp_assoc_value instead\n");
+ "Use struct sctp_assoc_value instead\n",
+ current->comm, task_pid_nr(current));
if (copy_from_user(&val, optval, optlen))
return -EFAULT;
params.assoc_id = 0;
if (optlen == sizeof(int)) {
pr_warn_ratelimited(DEPRECATED
+ "%s (pid %d) "
"Use of int in max_burst socket option deprecated.\n"
- "Use struct sctp_assoc_value instead\n");
+ "Use struct sctp_assoc_value instead\n",
+ current->comm, task_pid_nr(current));
if (copy_from_user(&val, optval, optlen))
return -EFAULT;
} else if (optlen == sizeof(struct sctp_assoc_value)) {
return -EFAULT;
} else if (len == sizeof(struct sctp_assoc_value)) {
pr_warn_ratelimited(DEPRECATED
+ "%s (pid %d) "
"Use of struct sctp_assoc_value in delayed_ack socket option.\n"
- "Use struct sctp_sack_info instead\n");
+ "Use struct sctp_sack_info instead\n",
+ current->comm, task_pid_nr(current));
if (copy_from_user(¶ms, optval, len))
return -EFAULT;
} else
if (len == sizeof(int)) {
pr_warn_ratelimited(DEPRECATED
+ "%s (pid %d) "
"Use of int in maxseg socket option.\n"
- "Use struct sctp_assoc_value instead\n");
+ "Use struct sctp_assoc_value instead\n",
+ current->comm, task_pid_nr(current));
params.assoc_id = 0;
} else if (len >= sizeof(struct sctp_assoc_value)) {
len = sizeof(struct sctp_assoc_value);
if (len == sizeof(int)) {
pr_warn_ratelimited(DEPRECATED
+ "%s (pid %d) "
"Use of int in max_burst socket option.\n"
- "Use struct sctp_assoc_value instead\n");
+ "Use struct sctp_assoc_value instead\n",
+ current->comm, task_pid_nr(current));
params.assoc_id = 0;
} else if (len >= sizeof(struct sctp_assoc_value)) {
len = sizeof(struct sctp_assoc_value);