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

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

Merge "diag: Add proper check for peripheral value"

parents e59d2258 f50eb921
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1229,7 +1229,7 @@ void diag_real_time_work_fn(struct work_struct *work)
		if (peripheral > NUM_PERIPHERALS)
			peripheral = diag_search_peripheral_by_pd(i);

		if (peripheral < 0 || peripheral > NUM_PERIPHERALS)
		if (peripheral < 0 || peripheral >= NUM_PERIPHERALS)
			continue;

		if (!driver->feature[peripheral].peripheral_buffering)