Commit 1dd7fdb1 authored by Jörn Engel's avatar Jörn Engel Committed by David Woodhouse

[RSLIB] BUG() when passing illegal parameters to decode_rs8() or decode_rs16()

Returning -ERANGE should never happen.
Signed-off-by: default avatarJörn Engel <joern@logfs.org>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent c32b8dcc
...@@ -39,8 +39,7 @@ ...@@ -39,8 +39,7 @@
/* Check length parameter for validity */ /* Check length parameter for validity */
pad = nn - nroots - len; pad = nn - nroots - len;
if (pad < 0 || pad >= nn) BUG_ON(pad < 0 || pad >= nn);
return -ERANGE;
/* Does the caller provide the syndrome ? */ /* Does the caller provide the syndrome ? */
if (s != NULL) if (s != NULL)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment