media: dvb_demux: fix a bug for the continuity counter
authorYongSu Yoo <yongsuyoo0215@gmail.com>
Sun, 5 Mar 2023 21:25:19 +0000 (21:25 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 13 May 2023 07:20:01 +0000 (08:20 +0100)
commit7efb10d8dc70ea3000cc70dca53407c52488acd1
tree4a21530ef4deafbca18961897ac49dffcdeb12bf
parent53558de2b5c4f4ee6bfcfbe34e27071c2d0073d5
media: dvb_demux: fix a bug for the continuity counter

In dvb_demux.c, some logics exist which compare the expected
continuity counter and the real continuity counter. If they
are not matched each other, both of the expected continuity
counter and the real continuity counter should be printed.
But there exists a bug that the expected continuity counter
is not correctly printed. The expected continuity counter is
replaced with the real countinuity counter + 1 so that
the epected continuity counter is not correclty printed.
This is wrong. This bug is fixed.

Link: https://lore.kernel.org/linux-media/20230305212519.499-1-yongsuyoo0215@gmail.com
Signed-off-by: YongSu Yoo <yongsuyoo0215@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/dvb-core/dvb_demux.c