diff options
author | Igor Nabirushkin <inabirushkin@nvidia.com> | 2014-10-07 09:10:31 +0400 |
---|---|---|
committer | Winnie Hsu <whsu@nvidia.com> | 2015-01-29 22:02:21 -0800 |
commit | d075eb663ba4bd87b64cfba88a79c01c92049619 (patch) | |
tree | 349a7b66e42a35abee4c16fddf85e36164bedc31 /drivers | |
parent | 23fae3a5f0a959efbe83c00558379d44f3c8dfa0 (diff) |
misc: tegra_profiler: fix build warnings
Fix build warnings for Tegra Profiler.
Bug 1562287
Bug 1598009
Change-Id: I3bab0fdea33a217a8f13284329e6edec9fe35c50
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
(cherry picked from commit 27796155c4a7d33878c0c82c955d6c467d162651)
Reviewed-on: http://git-master/r/672024
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/misc/tegra-profiler/eh_unwind.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/misc/tegra-profiler/eh_unwind.c b/drivers/misc/tegra-profiler/eh_unwind.c index 072aa3cb0996..a8f13eecb628 100644 --- a/drivers/misc/tegra-profiler/eh_unwind.c +++ b/drivers/misc/tegra-profiler/eh_unwind.c @@ -137,8 +137,10 @@ validate_mmap_addr(struct quadd_extabs_mmap *mmap, static inline long read_mmap_data(struct quadd_extabs_mmap *mmap, const u32 *addr, u32 *retval) { - if (!validate_mmap_addr(mmap, (unsigned long)addr, sizeof(u32))) + if (!validate_mmap_addr(mmap, (unsigned long)addr, sizeof(u32))) { + *retval = 0; return -QUADD_URC_EACCESS; + } *retval = *addr; return 0; |