video: tegra: dc: Do not NULL _sd_brightness.
authorPrafull Suryawanshi <prafulls@nvidia.com>
Thu, 16 Jul 2015 05:23:12 +0000 (10:23 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Fri, 16 Oct 2015 00:47:44 +0000 (17:47 -0700)
commit1f5c6e83de3fa0ed287a8e58a075bb1d52b127b2
tree6219096cdbee87f32ccaf14c8c930c0c3dedd4fa
parent27457b6fa2c07a7ddca6df9b58b4818ce6066c93
video: tegra: dc: Do not NULL _sd_brightness.

bug 200120741

There is race condition where while update brightness going on,
nvsd_init happens. Somehow update brighness yet not finished.
So while accessing _sd_brightness in between, we see kernel panic.

Change-Id: I01f7b739691f0ab06f55fdf443e46f527b509224
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-on: http://git-master/r/770844
(cherry picked from commit dcd3eca43fea8dd95065e886760f219272657ecf)
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-on: http://git-master/r/818020
Reviewed-by: Robert Shih <rshih@nvidia.com>
Reviewed-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
drivers/video/tegra/dc/nvsd.c