mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
[RSLIB] BUG() when passing illegal parameters to decode_rs8() or decode_rs16()
Returning -ERANGE should never happen. Signed-off-by: Jörn Engel <joern@logfs.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
parent
c32b8dcc45
commit
1dd7fdb163
1 changed files with 1 additions and 2 deletions
|
@ -39,8 +39,7 @@
|
|||
|
||||
/* Check length parameter for validity */
|
||||
pad = nn - nroots - len;
|
||||
if (pad < 0 || pad >= nn)
|
||||
return -ERANGE;
|
||||
BUG_ON(pad < 0 || pad >= nn);
|
||||
|
||||
/* Does the caller provide the syndrome ? */
|
||||
if (s != NULL)
|
||||
|
|
Loading…
Reference in a new issue