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

Commit 9f8f3d3d authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: f_mass_storage: Add WARN_ON() when other then SIGUSR1 signal received"

parents cc5deae2 a1f62f32
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2562,6 +2562,10 @@ static void handle_exception(struct fsg_common *common)
		if (sig != SIGUSR1) {
			if (common->state < FSG_STATE_EXIT)
				DBG(common, "Main thread exiting on signal\n");

			WARN_ON(1);
			pr_err("%s: signal(%d) received from PID(%d) UID(%d)\n",
				__func__, sig, info.si_pid, info.si_uid);
			raise_exception(common, FSG_STATE_EXIT);
		}
	}