[sr-dev] git:master: tm: fix possible uninit. use of cancel_reason