Hi Jens,

On 7 May 2018 at 12:58, Jens Wiklander <[email protected]> wrote:
> From: Jann Horn <[email protected]>
>
> Bump the file's refcount before moving the reference into the fd table,
> not afterwards. The old code could drop the file's refcount to zero for a
> short moment before calling get_file() via get_dma_buf().
>
> This code can only be triggered on ARM systems that use Linaro's OP-TEE.
>
> Fixes: 967c9cca2cc5 ("tee: generic TEE subsystem")
> Signed-off-by: Jann Horn <[email protected]>
> Signed-off-by: Jens Wiklander <[email protected]>
Reviewed-by: Volodymyr Babchuk <[email protected]>

-- 
WBR Volodymyr Babchuk aka lorc [+380976646013]
mailto: [email protected]

Reply via email to