Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media: cedrus: Fix endless loop in cedrus_h265_skip_bits()
The busy status bit may never de-assert if number of programmed skip bits is incorrect, resulting in a kernel hang because the bit is polled endlessly in the code. Fix it by adding timeout for the bit-polling. This problem is reproducible by setting the data_bit_offset field of the HEVC slice params to a wrong value by userspace. Cc: [email protected] Fixes: 7678c54 (media: cedrus: Fix decoding for some HEVC videos) Reported-by: Nicolas Dufresne <[email protected]> Signed-off-by: Dmitry Osipenko <[email protected]> Signed-off-by: Nicolas Dufresne <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
- Loading branch information