mirror of https://github.com/torvalds/linux.git
cc1352_bootloader_rx() appends each serdev chunk into the fixed
rx_buffer before parsing bootloader packets. The helper can keep
leftover bytes between callbacks and may receive multiple packets in one
callback, so a single count value is not constrained by one packet
length.
Check that the incoming chunk fits in the remaining receive buffer space
before memcpy(). If it does not, drop the staged data and consume the
bytes instead of overflowing rx_buffer.
Fixes:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| arpc.h | ||
| bundle.c | ||
| connection.c | ||
| control.c | ||
| core.c | ||
| debugfs.c | ||
| es2.c | ||
| gb-beagleplay.c | ||
| greybus_trace.h | ||
| hd.c | ||
| interface.c | ||
| manifest.c | ||
| module.c | ||
| operation.c | ||
| svc.c | ||
| svc_watchdog.c | ||