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

Commit a343536f authored by Ferdinand Blomqvist's avatar Ferdinand Blomqvist Committed by Thomas Gleixner
Browse files

rslib: decode_rs: Fix length parameter check



The length of the data load must be at least one. Or in other words,
there must be room for at least 1 data and nroots parity symbols after
shortening the RS code.

Signed-off-by: default avatarFerdinand Blomqvist <ferdinand.blomqvist@gmail.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20190620141039.9874-4-ferdinand.blomqvist@gmail.com
parent 2034a42d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment