Tegra: memctrl_v2: fix "overflow before widen" coverity issue
authorVarun Wadekar <vwadekar@nvidia.com>
Thu, 5 Sep 2019 15:17:02 +0000 (08:17 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Thu, 5 Sep 2019 15:40:38 +0000 (08:40 -0700)
commit36bf55d66c3b01970f8aff0d3c2b70c9271717b7
tree59fc9a0052cf33a0391faf457f8872a76f2e42f5
parent5dbdf8e4eac1d5999f07976f9f430894b0784907
Tegra: memctrl_v2: fix "overflow before widen" coverity issue

This patch fixes a coding error, where the size of the protected memory area
was truncated due to an incorrect typecast.

This defect was found by coverity and reported as CID 336781.

Change-Id: I41878b0a9a5e5cd78ef3393fdc7b9ea7f7403ed3
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
plat/nvidia/tegra/common/drivers/memctrl/memctrl_v2.c