mirror of
https://github.com/apache/nuttx.git
synced 2025-12-10 12:14:36 +08:00
timerfd_create: initial reference count to zero
nx_open in timerfd_create will increase reference count, Therefore, the reference count starts with a value of 0. Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -544,9 +544,6 @@ int timerfd_create(int clockid, int flags)
|
||||
/* Initialize the timer instance */
|
||||
|
||||
new_dev->clock = clockid;
|
||||
new_dev->crefs = 1;
|
||||
new_dev->delay = 0;
|
||||
new_dev->counter = 0;
|
||||
|
||||
/* Request a unique minor device number */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user