diff for duplicates of <20201023113326-mutt-send-email-mst@kernel.org> diff --git a/a/1.txt b/N1/1.txt index 3f1d29b..2e19329 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -23,7 +23,7 @@ Needed for stable I guess. > - 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; @@ -42,3 +42,8 @@ Needed for stable I guess. > 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 fd2db6b..20cb237 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,13 +1,12 @@ "ref\020201023120853.GI282278@mwanda\0" "From\0Michael S. Tsirkin <mst@redhat.com>\0" "Subject\0Re: [PATCH net] vhost_vdpa: Return -EFUALT if copy_from_user() fails\0" - "Date\0Fri, 23 Oct 2020 15:34:25 +0000\0" + "Date\0Fri, 23 Oct 2020 11:34:25 -0400\0" "To\0Dan Carpenter <dan.carpenter@oracle.com>\0" - "Cc\0Jason Wang <jasowang@redhat.com>" - kvm@vger.kernel.org - virtualization@lists.linux-foundation.org + "Cc\0kvm@vger.kernel.org" netdev@vger.kernel.org kernel-janitors@vger.kernel.org + virtualization@lists.linux-foundation.org " kuba@kernel.org\0" "\00:1\0" "b\0" @@ -36,7 +35,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" @@ -54,6 +53,11 @@ "> +\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" + "_______________________________________________\n" + "Virtualization mailing list\n" + "Virtualization@lists.linux-foundation.org\n" + https://lists.linuxfoundation.org/mailman/listinfo/virtualization -35d8303381ca56dc57257b2ccbdcdfeeda89504764a27b27a44bbf7b9cfe370f +3725dd094c65ac981f0ca69f8d38db1c1ce5791479472d2dadab0a420f4ecf84
diff --git a/a/1.txt b/N2/1.txt index 3f1d29b..7951d40 100644 --- a/a/1.txt +++ b/N2/1.txt @@ -23,7 +23,7 @@ Needed for stable I guess. > - 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 fd2db6b..2ea6083 100644 --- a/a/content_digest +++ b/N2/content_digest @@ -1,7 +1,7 @@ "ref\020201023120853.GI282278@mwanda\0" "From\0Michael S. Tsirkin <mst@redhat.com>\0" "Subject\0Re: [PATCH net] vhost_vdpa: Return -EFUALT if copy_from_user() fails\0" - "Date\0Fri, 23 Oct 2020 15:34:25 +0000\0" + "Date\0Fri, 23 Oct 2020 11:34:25 -0400\0" "To\0Dan Carpenter <dan.carpenter@oracle.com>\0" "Cc\0Jason Wang <jasowang@redhat.com>" kvm@vger.kernel.org @@ -36,7 +36,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" @@ -56,4 +56,4 @@ "> \tdefault:\n" "> \t\tr = vhost_dev_ioctl(&v->vdev, cmd, argp);" -35d8303381ca56dc57257b2ccbdcdfeeda89504764a27b27a44bbf7b9cfe370f +4ffd0da8a51bf5c5c51ed2bc123f8f1c4e3009a3f86bbae6941b90b2b7426c87
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.