commit 546362a9ef2ef40b57c6605f14e88ced507f8dd0 upstream.
MHI reads the channel ID from the event ring element sent by the
device which can be any value between 0 and 255. In order to
prevent any out of bound accesses, add a check against the maximum
number of channels supported by the controller and those channels
not configured yet so as to skip processing of that event ring
element.
Link: https://lore.kernel.org/r/1624558141-11045-1-git-send-email-bbhatt@codeaurora.org
Fixes:
|
||
|---|---|---|
| .. | ||
| Makefile | ||
| boot.c | ||
| debugfs.c | ||
| init.c | ||
| internal.h | ||
| main.c | ||
| pm.c | ||