The error path of the SNAPSHOT_*_OR_LEAVE() macros jumped past
VRTC_UNLOCK() and returned with the vrtc lock held.
Signed-off-by: Wanpeng Qian <wanpengqian@gmail.com>
Sponsored by: keelos.dev
Differential D60232
vmm: release the lock when vrtc_snapshot() fails Authored by wanpengqian_gmail.com on Fri, Oct 2, 8:19 AM. Tags None Referenced Files
Details The error path of the SNAPSHOT_*_OR_LEAVE() macros jumped past Signed-off-by: Wanpeng Qian <wanpengqian@gmail.com> By inspection. Compile-tested on main (f958aa7e7); the error path is not taken in normal use (it needs a snapshot buffer that is too small).
Diff Detail
|