diff options
author | Ferdinand Blomqvist <ferdinand.blomqvist@gmail.com> | 2019-06-20 17:10:34 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-08-04 09:33:22 +0200 |
commit | 5c345e2afe52d23499c861999894ba564486beb0 (patch) | |
tree | a645b25b33767bb91c071049cc82a20924e125b1 /lib/bug.c | |
parent | df5b05868d66a58d184e2ce8b87abe86918a5fd8 (diff) | |
download | linux-stable-5c345e2afe52d23499c861999894ba564486beb0.tar.gz linux-stable-5c345e2afe52d23499c861999894ba564486beb0.tar.bz2 linux-stable-5c345e2afe52d23499c861999894ba564486beb0.zip |
rslib: Fix decoding of shortened codes
[ Upstream commit 2034a42d1747fc1e1eeef2c6f1789c4d0762cb9c ]
The decoding of shortenend codes is broken. It only works as expected if
there are no erasures.
When decoding with erasures, Lambda (the error and erasure locator
polynomial) is initialized from the given erasure positions. The pad
parameter is not accounted for by the initialisation code, and hence
Lambda is initialized from incorrect erasure positions.
The fix is to adjust the erasure positions by the supplied pad.
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-3-ferdinand.blomqvist@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib/bug.c')
0 files changed, 0 insertions, 0 deletions