]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
misc: nct1008: fix NULL ptr access in get_trend
authorSrikar Srimath Tirumala <srikars@nvidia.com>
Wed, 24 May 2017 02:10:07 +0000 (19:10 -0700)
committermobile promotions <svcmobile_promotions@nvidia.com>
Wed, 7 Jun 2017 11:00:16 +0000 (04:00 -0700)
commit8fe84a32252344f3c32551bc7e50c547aead2be2
treeb83290711f95ad14809ab32fddc0797c6a15394b
parent410dc3e204ca353d66a61689abaaf65bef24879d
misc: nct1008: fix NULL ptr access in get_trend

Return a stable trend when trend is queried during boot before
all the pointers are initialized.

Bug 200311672

Change-Id: I6b03b266b868ac1bd6e39ea63078d24e273bc327
Signed-off-by: Srikar Srimath Tirumala <srikars@nvidia.com>
Reviewed-on: http://git-master/r/1488401
(cherry picked from commit f507b9b74fede1e1adac02c295e0f3666c4a7674)
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/1492084
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
drivers/misc/nct1008.c