We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe0a916 commit 3701cb5Copy full SHA for 3701cb5
fs/eventpoll.c
@@ -1448,7 +1448,7 @@ static int reverse_path_check(void)
1448
1449
static int ep_create_wakeup_source(struct epitem *epi)
1450
{
1451
- const char *name;
+ struct name_snapshot n;
1452
struct wakeup_source *ws;
1453
1454
if (!epi->ep->ws) {
@@ -1457,8 +1457,9 @@ static int ep_create_wakeup_source(struct epitem *epi)
1457
return -ENOMEM;
1458
}
1459
1460
- name = epi->ffd.file->f_path.dentry->d_name.name;
1461
- ws = wakeup_source_register(NULL, name);
+ take_dentry_name_snapshot(&n, epi->ffd.file->f_path.dentry);
+ ws = wakeup_source_register(NULL, n.name.name);
1462
+ release_dentry_name_snapshot(&n);
1463
1464
if (!ws)
1465
0 commit comments