diff for duplicates of <20201023120853.GI282278@mwanda> diff --git a/a/1.txt b/N1/1.txt index bff073c..5feb783 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -18,7 +18,7 @@ index 62a9bb0efc55..c94a97b6bd6d 100644 - long r; + long r = 0; - if (cmd = VHOST_SET_BACKEND_FEATURES) { + if (cmd == VHOST_SET_BACKEND_FEATURES) { - r = copy_from_user(&features, featurep, sizeof(features)); - if (r) - return r; @@ -37,3 +37,7 @@ index 62a9bb0efc55..c94a97b6bd6d 100644 break; default: r = vhost_dev_ioctl(&v->vdev, cmd, argp); +_______________________________________________ +Virtualization mailing list +Virtualization@lists.linux-foundation.org +https://lists.linuxfoundation.org/mailman/listinfo/virtualization diff --git a/a/content_digest b/N1/content_digest index 51cc8fc..a17dc40 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,12 +1,12 @@ "From\0Dan Carpenter <dan.carpenter@oracle.com>\0" "Subject\0[PATCH net] vhost_vdpa: Return -EFUALT if copy_from_user() fails\0" - "Date\0Fri, 23 Oct 2020 12:08:53 +0000\0" + "Date\0Fri, 23 Oct 2020 15:08:53 +0300\0" "To\0Michael S. Tsirkin <mst@redhat.com>" " Jason Wang <jasowang@redhat.com>\0" - "Cc\0kvm@vger.kernel.org" - virtualization@lists.linux-foundation.org - netdev@vger.kernel.org - " kernel-janitors@vger.kernel.org\0" + "Cc\0netdev@vger.kernel.org" + kernel-janitors@vger.kernel.org + kvm@vger.kernel.org + " virtualization@lists.linux-foundation.org\0" "\00:1\0" "b\0" "The copy_to/from_user() functions return the number of bytes which we\n" @@ -29,7 +29,7 @@ "-\tlong r;\n" "+\tlong r = 0;\n" " \n" - " \tif (cmd = VHOST_SET_BACKEND_FEATURES) {\n" + " \tif (cmd == VHOST_SET_BACKEND_FEATURES) {\n" "-\t\tr = copy_from_user(&features, featurep, sizeof(features));\n" "-\t\tif (r)\n" "-\t\t\treturn r;\n" @@ -47,6 +47,10 @@ "+\t\t\tr = -EFAULT;\n" " \t\tbreak;\n" " \tdefault:\n" - " \t\tr = vhost_dev_ioctl(&v->vdev, cmd, argp);" + " \t\tr = vhost_dev_ioctl(&v->vdev, cmd, argp);\n" + "_______________________________________________\n" + "Virtualization mailing list\n" + "Virtualization@lists.linux-foundation.org\n" + https://lists.linuxfoundation.org/mailman/listinfo/virtualization -b924f12108c412cbbe5ea5a6d6dfa99d7b5080ca9ae529a47b06d4a0c84aa283 +7e8b78781f7245c0d1ae1635c6c8c7e3537834736bf435979e98ff2346bc5b86
diff --git a/a/1.txt b/N2/1.txt index bff073c..a4e88b0 100644 --- a/a/1.txt +++ b/N2/1.txt @@ -18,7 +18,7 @@ index 62a9bb0efc55..c94a97b6bd6d 100644 - long r; + long r = 0; - if (cmd = VHOST_SET_BACKEND_FEATURES) { + if (cmd == VHOST_SET_BACKEND_FEATURES) { - r = copy_from_user(&features, featurep, sizeof(features)); - if (r) - return r; diff --git a/a/content_digest b/N2/content_digest index 51cc8fc..d5eee95 100644 --- a/a/content_digest +++ b/N2/content_digest @@ -1,6 +1,6 @@ "From\0Dan Carpenter <dan.carpenter@oracle.com>\0" "Subject\0[PATCH net] vhost_vdpa: Return -EFUALT if copy_from_user() fails\0" - "Date\0Fri, 23 Oct 2020 12:08:53 +0000\0" + "Date\0Fri, 23 Oct 2020 15:08:53 +0300\0" "To\0Michael S. Tsirkin <mst@redhat.com>" " Jason Wang <jasowang@redhat.com>\0" "Cc\0kvm@vger.kernel.org" @@ -29,7 +29,7 @@ "-\tlong r;\n" "+\tlong r = 0;\n" " \n" - " \tif (cmd = VHOST_SET_BACKEND_FEATURES) {\n" + " \tif (cmd == VHOST_SET_BACKEND_FEATURES) {\n" "-\t\tr = copy_from_user(&features, featurep, sizeof(features));\n" "-\t\tif (r)\n" "-\t\t\treturn r;\n" @@ -49,4 +49,4 @@ " \tdefault:\n" " \t\tr = vhost_dev_ioctl(&v->vdev, cmd, argp);" -b924f12108c412cbbe5ea5a6d6dfa99d7b5080ca9ae529a47b06d4a0c84aa283 +496327b225f8d47eb973b7169879414bc62cfa26bc281cfe5f63ebd7a395f18d
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.