diff options
| author | Bhaumik Bhatt <[email protected]> | 2021-08-02 10:42:53 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-08-05 14:28:47 +0200 |
| commit | 06e2c4a9eaf2a2ed267b9cee70f91aaf616eb925 (patch) | |
| tree | b4a0314cfb429801b283ba6c4088bf9bc2b4357a /scripts/gdb/linux/utils.py | |
| parent | 3551a30b9d4c2a5520e6c798758a6f4858adcd0a (diff) | |
bus: mhi: core: Add range checks for BHI and BHIe
When obtaining the BHI or BHIe offsets during the power up
preparation phase, range checks are missing. These can help
controller drivers avoid accessing any address outside of the
MMIO region. Ensure that mhi_cntrl->reg_len is set before MHI
registration as it is a required field and range checks will
fail without it.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Jeffrey Hugo <[email protected]>
Reviewed-by: Hemant Kumar <[email protected]>
Reviewed-by: Manivannan Sadhasivam <[email protected]>
Signed-off-by: Bhaumik Bhatt <[email protected]>
Signed-off-by: Manivannan Sadhasivam <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions