dfu: Fix possible wrong memory access 32/229032/1
authorDongwoo Lee <dwoo08.lee@samsung.com>
Fri, 27 Mar 2020 07:11:44 +0000 (16:11 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Fri, 27 Mar 2020 07:13:30 +0000 (16:13 +0900)
commitd0d02c0cde0559f71d67fbd2d0cb8316fe13a42f
tree6c05827b6f12fa8c56819a4ab8b3d9d04da1a45c
parent2e3ea0b7b9551379a90460f9df8deb616f23517a
dfu: Fix possible wrong memory access

Currently, dfu context is assigned after thread creation, tfm can
be died due to wrong memory access if thread is scheduled in advance.
This fixes this by assigning ctx before thread creation.

Change-Id: I44f86223b90d6dac537699369a478d4cdb7829c2
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
src/dfu.c