mirror of
https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable.git
synced 2025-11-03 07:30:30 +10:00
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:
|
||
|---|---|---|
| .. | ||
| optee | ||
| Kconfig | ||
| Makefile | ||
| tee_core.c | ||
| tee_private.h | ||
| tee_shm_pool.c | ||
| tee_shm.c | ||