mirror of
https://github.com/AsahiLinux/m1n1
synced 2025-02-16 13:48:29 +00:00
sio: Add missing exit on bad ADT data
Signed-off-by: Martin Povišer <povik@cutebit.org>
This commit is contained in:
parent
94cf41e124
commit
1ba260c090
1 changed files with 1 additions and 0 deletions
|
@ -204,6 +204,7 @@ int sio_setup_fwdata(void)
|
|||
if (len % (rule->blobsize + 4) != 0) {
|
||||
printf("%s: bad length %d of ADT property '%s', expected multiple of %d + 4\n",
|
||||
__func__, len, rule->prop, rule->blobsize);
|
||||
goto err_inval;
|
||||
}
|
||||
|
||||
for (u32 off = 0; off + rule->blobsize <= len; off += (rule->blobsize + 4)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue