diff options
| author | Pravin <pt@nvidia.com> | 2016-03-28 07:22:16 -0400 |
|---|---|---|
| committer | Sachin Nikam <snikam@nvidia.com> | 2016-03-31 07:34:02 -0400 |
| commit | 5e92500a2faa94332aea314e5132adfc7afc8a1d (patch) | |
| tree | aaed1fb59dc1a8cc1702002453274f0308de0b6b /include/linux/platform | |
| parent | 88eeed6269b3b93dcabdb99a6c40c184315120f8 (diff) | |
platform: tegra: mcerr: Coverity fixes
-Change irq variable type as s32
-Change the comparison at __emc_readl to
avoid possible array overflow
Coverity ID:20443
Coverity ID:20444
Bug 200116059
Change-Id: If1392e09b8967d80c4a5d1eb975cd41dc822f586
Signed-off-by: Pravin <pt@nvidia.com>
Reviewed-on: http://git-master/r/1115960
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'include/linux/platform')
| -rw-r--r-- | include/linux/platform/tegra/tegra18_emc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/platform/tegra/tegra18_emc.h b/include/linux/platform/tegra/tegra18_emc.h index abfc43ef9..73686be7b 100644 --- a/include/linux/platform/tegra/tegra18_emc.h +++ b/include/linux/platform/tegra/tegra18_emc.h | |||
| @@ -148,7 +148,7 @@ static inline u32 __emc_readl(int idx, u32 reg) | |||
| 148 | return 0; | 148 | return 0; |
| 149 | 149 | ||
| 150 | if ((idx != EMC_BROADCAST_CHANNEL && idx < 0) || | 150 | if ((idx != EMC_BROADCAST_CHANNEL && idx < 0) || |
| 151 | idx > MAX_CHANNELS) | 151 | idx >= MAX_CHANNELS) |
| 152 | return 0; | 152 | return 0; |
| 153 | 153 | ||
| 154 | if (idx == EMC_BROADCAST_CHANNEL) | 154 | if (idx == EMC_BROADCAST_CHANNEL) |
