video: tegra: dc fix bw overflow issue
authorJihoon Bang <jbang@nvidia.com>
Thu, 7 Mar 2013 02:17:23 +0000 (18:17 -0800)
committerMandar Padmawar <mpadmawar@nvidia.com>
Fri, 8 Mar 2013 08:30:29 +0000 (00:30 -0800)
commitb059525cc1f35e2f57341c18d54859285441603b
treebec99e124c2561a629b07e15bc92c09e402539a1
parentdd93f497aa136e3c73398235922409dec3ab6539
video: tegra: dc fix bw overflow issue

There is a corner case where bw is larger than ULONG_MAX,
but freq is smaller than ULONG_MAX.
Apply clipping condition to frequency instead of bandwidth.

Bug 1248607

Change-Id: I936d1de3152738cf33f2dfddfc818c394cb82612
Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/206904
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
drivers/video/tegra/dc/bandwidth.c