Commit 79c3184
pibridge-serdev: add sanity check for received packet size
In functions pibridge_req_io() and pibridge_req_gate_tmt() return an error
if the size of the received packet does not match the expected size (as
specified by the passed parameter "rcv_len").
Signed-off-by: Lino Sanfilippo <l.sanfilippo@kunbus.com>1 parent 07ea515 commit 79c3184
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
337 | 344 | | |
338 | 345 | | |
339 | 346 | | |
| |||
465 | 472 | | |
466 | 473 | | |
467 | 474 | | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
468 | 482 | | |
469 | 483 | | |
470 | 484 | | |
| |||
0 commit comments