misc: tegra-profiler: rd_alloc
authorShu Zhong <shuz@nvidia.com>
Tue, 1 Jul 2014 17:25:57 +0000 (10:25 -0700)
committerWinnie Hsu <whsu@nvidia.com>
Fri, 30 Jan 2015 06:00:41 +0000 (22:00 -0800)
commit7834a7a15b4086d98d97c0fcf69713c6f8c9e625
tree6875f83115e6c5f2bc941483cd30ac9b47707d74
parent3ab290755e0be6b207a5cd79f507c456195bba58
misc: tegra-profiler: rd_alloc

quadd_unwind_start calls rd_alloc while holding a spinlock.
This is dangerous because rd_alloc allocates memory with
the GFP_KERNEL flag. This fix simply moves rd_alloc outside
the critical section.

Bug 1529894
Bug 1598009

Change-Id: I284e72d2fdd9089428d75f3c3efb79513a897b7e
Signed-off-by: Shu Zhong <shuz@nvidia.com>
Reviewed-on: http://git-master/r/433264
(cherry picked from commit e29a862f449b3f1831410162c4360041438017dc)
Reviewed-on: http://git-master/r/672012
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Tested-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
drivers/misc/tegra-profiler/eh_unwind.c