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:
parent
c4535ee66a
commit
b1b2a7cc0b
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue