Commit
1dd7fdb163645f453f5ae55686511b6fcc2314cd
Exists in
master
and in
20 other branches
dlt-processor-sdk-linux-03.00.00.04, newt-ti-linux-3.12.y, processor-sdk-linux-01.00.00, processor-sdk-linux-02.00.01, smarc-ti-linux-3.12.10, smarc-ti-linux-3.12.y, smarc-ti-linux-3.14.y, smarc-ti-linux-3.15.y, smarc-ti-lsk-linux-4.1.y, smarct3x-processor-sdk-04.01.00.06, smarct3x-processor-sdk-linux-02.00.01, smarct3x-processor-sdk-linux-03.00.00.04, smarct4x-800-processor-sdk-linux-02.00.01, smarct4x-processor-sdk-04.01.00.06, smarct4x-processor-sdk-linux-02.00.01, smarct4x-processor-sdk-linux-03.00.00.04, ti-linux-3.12.y, ti-linux-3.14.y, ti-linux-3.15.y, ti-lsk-linux-4.1.y
[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>
Showing
1 changed file
with
1 additions
and
2 deletions
Side-by-side Diff
... |
... |
@@ -39,8 +39,7 @@ |
39
|
39 |
|
40
|
40 |
/* Check length parameter for validity */ |
41
|
41 |
pad = nn - nroots - len; |
42
|
|
- if (pad < 0 || pad >= nn) |
43
|
|
- return -ERANGE; |
|
42 |
+ BUG_ON(pad < 0 || pad >= nn); |
44
|
43 |
|
45
|
44 |
/* Does the caller provide the syndrome ? */ |
46
|
45 |
if (s != NULL) |