Unverified Commit f8739508 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!1178 memstick: r592: Fix UAF bug in r592_remove due to race condition

parents 7b970383 24fbf41b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -828,7 +828,7 @@ static void r592_remove(struct pci_dev *pdev)
	/* Stop the processing thread.
	That ensures that we won't take any more requests */
	kthread_stop(dev->io_thread);

	del_timer_sync(&dev->detect_timer);
	r592_enable_device(dev, false);

	while (!error && dev->req) {