Xiang Xiao 86fab49c46 fs: Fix the race condition in file_dup
NULL inode passed to files_allocate doesn't mark file struct in the
allocated state, so other threads which invovle in file allocation
(e.g. open or dup) may allocate the same file struct again.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I53ff876eae3c7a1e311e7f671686b73a4b4ef891
2021-01-08 11:01:46 +08:00
..
2020-06-24 13:48:41 +01:00
2020-06-30 13:09:58 -06:00
2020-01-02 10:54:43 -06:00
2020-05-03 12:15:54 -06:00
2020-05-17 14:01:00 -03:00
2020-01-02 10:54:43 -06:00
2020-01-02 10:54:43 -06:00
2020-09-24 03:13:27 -07:00
2020-09-24 03:13:27 -07:00
2020-12-30 21:20:17 -06:00
2020-06-15 08:07:19 -06:00