aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-bridge.c
diff options
context:
space:
mode:
authorJeffrey Hugo <[email protected]>2023-03-24 10:13:04 -0600
committerManivannan Sadhasivam <[email protected]>2023-04-03 10:46:57 +0530
commit6a0c637bfee69a74c104468544d9f2a6579626d0 (patch)
tree304ab8e23b4986dc200176dfc32ec350f2abaa12 /drivers/fpga/fpga-bridge.c
parent14853a0676c126aad836eb249499552fa9d6e85a (diff)
bus: mhi: host: Range check CHDBOFF and ERDBOFF
If the value read from the CHDBOFF and ERDBOFF registers is outside the range of the MHI register space then an invalid address might be computed which later causes a kernel panic. Range check the read value to prevent a crash due to bad data from the device. Fixes: 6cd330ae76ff ("bus: mhi: core: Add support for ringing channel/event ring doorbells") Cc: [email protected] Signed-off-by: Jeffrey Hugo <[email protected]> Reviewed-by: Pranjal Ramajor Asha Kanojiya <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Manivannan Sadhasivam <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions