aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/mpt3sas/mpi/mpi2_raid.h
diff options
context:
space:
mode:
authorHeiko Stuebner <[email protected]>2015-06-18 16:18:30 +0200
committerStephen Boyd <[email protected]>2015-07-06 15:03:24 -0700
commit2d7884a7d0e70f9509881c40eaee3f5a5c201b07 (patch)
tree2d9fdad1d9815069d31d8c337754af470f0ccbae /drivers/scsi/mpt3sas/mpi/mpi2_raid.h
parent101762976b8d7038934f31ffb4e19fbac9b5e1d4 (diff)
clk: rockchip: protect register macros against multipart values
The macros calculate the correct offset from the id in the parameter. If this parameter does not consist of a single number, the calculation will return wrong registers in the best case or create unaligned accesses in the worst case. So protect the calculations against such values. Signed-off-by: Heiko Stuebner <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt3sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions