Skip to content

Commit dddebde

Browse files
committed
Merge tag 'vfs-6.11-rc1.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
Pull vfs fixes from Christian Brauner: - Fix a missing rcu_read_unlock() in nsfs by switching to a cleanup guard - Add missing module descriptor for adfs * tag 'vfs-6.11-rc1.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs: nsfs: use cleanup guard fs/adfs: add MODULE_DESCRIPTION
2 parents cf05e93 + 280e36f commit dddebde

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

fs/adfs/super.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,4 +491,5 @@ static void __exit exit_adfs_fs(void)
491491

492492
module_init(init_adfs_fs)
493493
module_exit(exit_adfs_fs)
494+
MODULE_DESCRIPTION("Acorn Disc Filing System");
494495
MODULE_LICENSE("GPL");

fs/nsfs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,14 @@ static long ns_ioctl(struct file *filp, unsigned int ioctl,
174174
fallthrough;
175175
case NS_GET_PID_IN_PIDNS:
176176
fallthrough;
177-
case NS_GET_TGID_IN_PIDNS:
177+
case NS_GET_TGID_IN_PIDNS: {
178178
if (ns->ops->type != CLONE_NEWPID)
179179
return -EINVAL;
180180

181181
ret = -ESRCH;
182182
pid_ns = container_of(ns, struct pid_namespace, ns);
183183

184-
rcu_read_lock();
184+
guard(rcu)();
185185

186186
if (ioctl == NS_GET_PID_IN_PIDNS ||
187187
ioctl == NS_GET_TGID_IN_PIDNS)
@@ -208,11 +208,11 @@ static long ns_ioctl(struct file *filp, unsigned int ioctl,
208208
ret = 0;
209209
break;
210210
}
211-
rcu_read_unlock();
212211

213212
if (!ret)
214213
ret = -ESRCH;
215214
break;
215+
}
216216
default:
217217
ret = -ENOTTY;
218218
}

0 commit comments

Comments
 (0)