diff options
author | Ferdinand Blomqvist <ferdinand.blomqvist@gmail.com> | 2019-06-20 16:10:35 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2019-06-26 14:55:46 +0200 |
commit | a343536f8f482be6932803a023f46d0fa723ae56 (patch) | |
tree | 422e78f437f3c84254c519e51eee8689e673b5c7 /lib/reed_solomon/Makefile | |
parent | rslib: Fix decoding of shortened codes (diff) | |
download | linux-a343536f8f482be6932803a023f46d0fa723ae56.tar.xz linux-a343536f8f482be6932803a023f46d0fa723ae56.zip |
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: Ferdinand Blomqvist <ferdinand.blomqvist@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20190620141039.9874-4-ferdinand.blomqvist@gmail.com
Diffstat (limited to 'lib/reed_solomon/Makefile')
0 files changed, 0 insertions, 0 deletions