aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorBhaumik Bhatt <[email protected]>2021-08-02 10:42:53 +0530
committerGreg Kroah-Hartman <[email protected]>2021-08-05 14:28:47 +0200
commit06e2c4a9eaf2a2ed267b9cee70f91aaf616eb925 (patch)
treeb4a0314cfb429801b283ba6c4088bf9bc2b4357a /scripts/gdb/linux/utils.py
parent3551a30b9d4c2a5520e6c798758a6f4858adcd0a (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