Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d4aa8db authored by Ajay Agarwal's avatar Ajay Agarwal
Browse files

qrtr: usb_dev: Fix kthread usage



Return from kthread work function only when kthread_should_stop
becomes true.

Change-Id: I73e91a8128405c79c54894f0cb96899bba344441
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
parent 9529f971
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -83,7 +83,7 @@ static int qrtr_usb_dev_rx_thread_fn(void *data)
		if (bytes_read < 0) {
			dev_err(&qep->pdev->dev,
				"error in ipc read operation %d\n", bytes_read);
			break;
			continue;
		}

		dev_dbg(&qep->pdev->dev, "received message with len=%d\n",