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

Commit ce2e4996 authored by Deva Ramasubramanian's avatar Deva Ramasubramanian
Browse files

msm: vidc: Fix a bug in handling corrupt/unknown packets



The wrong variable (which was the output parameter) was getting
decremented when we encountered an unknown packet.  We should be
decrementing the local packet_count variable.

Change-Id: I32c09e7b7bbfaef5ae92a74d70e4422f7d3b1649
Signed-off-by: default avatarDeva Ramasubramanian <dramasub@codeaurora.org>
parent fd854d74
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3432,7 +3432,7 @@ static struct msm_vidc_cb_info *__response_handler(
		if (rc) {
			dprintk(VIDC_WARN,
					"Corrupt/unknown packet found, discarding\n");
			--num_packets;
			--packet_count;
			continue;
		}