mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
Kernel throws a dump trace upon setting wakealarm time on VRS RTC. We are unlocking mutex twice in a single API call. Delete one instance which is not required. [ 590.301592] Call trace: [ 590.304035] __mutex_unlock_slowpath.isra.0+0x1d4/0x2d0 [ 590.309274] mutex_unlock+0x60/0x80 [ 590.312766] 0xffff80007ce0e6ec [ 590.315909] __rtc_set_alarm+0x100/0x200 [ 590.319751] rtc_timer_enqueue+0x168/0x2e8 [ 590.331275] dev_attr_store+0x20/0x601e8 [ 590.335117] sysfs_kf_write+0x4c/0x88 [ 590.338609] kernfs_fop_write_iter+0x144/0x1d8 [ 590.343149] vfs_write+0x254/0x398 [ 590.353626] invoke_syscall+0x50/0x14040 [ 590.357468] el0_svc_common.constprop.0+0x48/0x100 [ 590.362357] do_el0_svc+0x24/0x40 [ 590.365501] el0_svc+0x34/0xc8 [ 590.372835] el0t_64_sync+0x194/0x19830/0x140 [ 590.376679] ---[ end trace 0000000000000000 ]--- Bug 4715238 Change-Id: I7e070772c81474eb22859f2a00934211e6dad834 Signed-off-by: Shubhi Garg <shgarg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3258911 GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com>