Messages in this thread Patch in this message | | | From | Greg Kroah-Hartman <> | Subject | [PATCH 122/190] Revert "HID: logitech: check the return value of create_singlethread_workqueue" | Date | Wed, 21 Apr 2021 14:59:57 +0200 |
| |
This reverts commit 6c44b15e1c9076d925d5236ddadf1318b0a25ce2.
Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota).
Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase.
Cc: Kangjie Lu <kjlu@umn.edu> Cc: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> --- drivers/hid/hid-logitech-hidpp.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid-logitech-hidpp.c index d459e2dbe647..cb73febbe893 100644 --- a/drivers/hid/hid-logitech-hidpp.c +++ b/drivers/hid/hid-logitech-hidpp.c @@ -2547,13 +2547,6 @@ static int hidpp_ff_init(struct hidpp_device *hidpp, kfree(data); return -ENOMEM; } - data->wq = create_singlethread_workqueue("hidpp-ff-sendqueue"); - if (!data->wq) { - kfree(data->effect_ids); - kfree(data); - return -ENOMEM; - } - data->hidpp = hidpp; data->version = version; for (j = 0; j < num_slots; j++) @@ -2575,6 +2568,7 @@ static int hidpp_ff_init(struct hidpp_device *hidpp, hid_warn(hidpp->hid_dev, "Unable to create sysfs interface for \"range\", errno %d!\n", error); /* init the hardware command queue */ + data->wq = create_singlethread_workqueue("hidpp-ff-sendqueue"); atomic_set(&data->workqueue_size, 0); hid_info(hid, "Force feedback support loaded (firmware release %d).\n", -- 2.31.1
| |