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

Commit 40eac2bf authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "diag: Fail read_work if HSIC channel is suspended"

parents fb6f67e9 a9c07675
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2012-2014, 2016-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2014, 2016-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
@@ -297,7 +297,7 @@ static void hsic_read_work_fn(struct work_struct *work)
	unsigned char *buf = NULL;
	struct diag_hsic_info *ch = container_of(work, struct diag_hsic_info,
						 read_work);
	if (!ch || !ch->enabled || !ch->opened)
	if (!ch || !ch->enabled || !ch->opened || ch->suspended)
		return;

	do {