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

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

Merge "diag: dci: Check for valid peripheral feature mask"

parents 01b289a4 a371b661
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2935,7 +2935,7 @@ int diag_dci_write_proc(uint8_t peripheral, int pkt_type, char *buf, int len)
	int err = 0;

	if (!buf || peripheral >= NUM_PERIPHERALS || len < 0 ||
	    !(driver->feature[peripheral].rcvd_feature_mask)) {
	    !(driver->feature[PERIPHERAL_MODEM].rcvd_feature_mask)) {
		DIAG_LOG(DIAG_DEBUG_DCI,
			"buf: 0x%p, p: %d, len: %d, f_mask: %d\n",
				buf, peripheral, len,