diff options
-rw-r--r-- | net/sctp/socket.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c index 0738843876a1..e432927310c9 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c | |||
@@ -2404,9 +2404,9 @@ static int sctp_setsockopt_delayed_ack(struct sock *sk, | |||
2404 | if (params.sack_delay == 0 && params.sack_freq == 0) | 2404 | if (params.sack_delay == 0 && params.sack_freq == 0) |
2405 | return 0; | 2405 | return 0; |
2406 | } else if (optlen == sizeof(struct sctp_assoc_value)) { | 2406 | } else if (optlen == sizeof(struct sctp_assoc_value)) { |
2407 | printk(KERN_WARNING "SCTP: Use of struct sctp_sack_info " | 2407 | printk(KERN_WARNING "SCTP: Use of struct sctp_assoc_value " |
2408 | "in delayed_ack socket option deprecated\n"); | 2408 | "in delayed_ack socket option deprecated\n"); |
2409 | printk(KERN_WARNING "SCTP: struct sctp_sack_info instead\n"); | 2409 | printk(KERN_WARNING "SCTP: Use struct sctp_sack_info instead\n"); |
2410 | if (copy_from_user(¶ms, optval, optlen)) | 2410 | if (copy_from_user(¶ms, optval, optlen)) |
2411 | return -EFAULT; | 2411 | return -EFAULT; |
2412 | 2412 | ||
@@ -4221,9 +4221,9 @@ static int sctp_getsockopt_delayed_ack(struct sock *sk, int len, | |||
4221 | if (copy_from_user(¶ms, optval, len)) | 4221 | if (copy_from_user(¶ms, optval, len)) |
4222 | return -EFAULT; | 4222 | return -EFAULT; |
4223 | } else if (len == sizeof(struct sctp_assoc_value)) { | 4223 | } else if (len == sizeof(struct sctp_assoc_value)) { |
4224 | printk(KERN_WARNING "SCTP: Use of struct sctp_sack_info " | 4224 | printk(KERN_WARNING "SCTP: Use of struct sctp_assoc_value " |
4225 | "in delayed_ack socket option deprecated\n"); | 4225 | "in delayed_ack socket option deprecated\n"); |
4226 | printk(KERN_WARNING "SCTP: struct sctp_sack_info instead\n"); | 4226 | printk(KERN_WARNING "SCTP: Use struct sctp_sack_info instead\n"); |
4227 | if (copy_from_user(¶ms, optval, len)) | 4227 | if (copy_from_user(¶ms, optval, len)) |
4228 | return -EFAULT; | 4228 | return -EFAULT; |
4229 | } else | 4229 | } else |