diff for duplicates of <53A0492D.9010409@gmail.com> diff --git a/a/1.txt b/N1/1.txt index 422f0a1..8c691f2 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -70,7 +70,7 @@ in the kernel tree. > + if(get_user(val, (int __user*)optval)){ > + return -EFAULT; > + } -> + sctp_sk(sk)->recvrcvinfo = (val = 0) ? 0 : 1; +> + sctp_sk(sk)->recvrcvinfo = (val == 0) ? 0 : 1; > + return 0; > +} > + @@ -119,7 +119,7 @@ Indent issue. > + return -EINVAL; > + > + len = sizeof(int); -> + val = (sctp_sk(sk)->recvrcvinfo = 1); +> + val = (sctp_sk(sk)->recvrcvinfo == 1); > + if (put_user(len, optlen)) > + return -EFAULT; > + if (copy_to_user(optval, &val, len)) diff --git a/a/content_digest b/N1/content_digest index 02c4b59..764daa8 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -2,7 +2,7 @@ "ref\01403006273-27859-2-git-send-email-geirola@gmail.com\0" "From\0Vlad Yasevich <vyasevich@gmail.com>\0" "Subject\0Re: [PATCH net-next 1/6] Support for SCTP_RECVRCVINFO socket option\0" - "Date\0Tue, 17 Jun 2014 13:57:01 +0000\0" + "Date\0Tue, 17 Jun 2014 09:57:01 -0400\0" "To\0Geir Ola Vaagland <geirola@gmail.com>" " netdev@vger.kernel.org\0" "Cc\0linux-sctp@vger.kernel.org\0" @@ -80,7 +80,7 @@ "> +\tif(get_user(val, (int __user*)optval)){\n" "> +\t\treturn -EFAULT;\n" "> +\t}\n" - "> +\tsctp_sk(sk)->recvrcvinfo = (val = 0) ? 0 : 1;\n" + "> +\tsctp_sk(sk)->recvrcvinfo = (val == 0) ? 0 : 1;\n" "> +\treturn 0;\n" "> +}\n" "> +\n" @@ -129,7 +129,7 @@ "> +\t\treturn -EINVAL;\n" "> +\n" "> +\tlen = sizeof(int);\n" - "> +\tval = (sctp_sk(sk)->recvrcvinfo = 1);\n" + "> +\tval = (sctp_sk(sk)->recvrcvinfo == 1);\n" "> +\tif (put_user(len, optlen))\n" "> +\t\treturn -EFAULT;\n" "> +\tif (copy_to_user(optval, &val, len))\n" @@ -154,4 +154,4 @@ "> \t\tbreak;\n" > -c29e8cf4d8abfd4e3e9f39f38452af8554d615cf52fa0bf99facf3afe11eb01b +226c1e679906b791840ca6a65d3cdfaabf389c7e96d2de5fdc908b66882a1793
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.