]> Git Repo - linux.git/commit
switch netlink_getsockbyfilp() to taking descriptor
authorAl Viro <[email protected]>
Mon, 15 Jul 2024 01:49:04 +0000 (21:49 -0400)
committerAl Viro <[email protected]>
Sun, 3 Nov 2024 06:28:06 +0000 (01:28 -0500)
commitf302edb9d822804e72df3fa6ba270234050c678b
tree01ba6ce53daa3bb3a604fdef197802a7b58fa3a2
parent4dd53b84ff23424e2fe1e902decacdb49303e3d3
switch netlink_getsockbyfilp() to taking descriptor

the only call site (in do_mq_notify()) obtains the argument
from an immediately preceding fdget() and it is immediately
followed by fdput(); might as well just replace it with
a variant that would take a descriptor instead of struct file *
and have file lookups handled inside that function.

Reviewed-by: Christian Brauner <[email protected]>
Signed-off-by: Al Viro <[email protected]>
include/linux/netlink.h
ipc/mqueue.c
net/netlink/af_netlink.c
This page took 0.054894 seconds and 4 git commands to generate.