mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
af_unix/scm: fix whitespace errors
Fix whitespace/formatting errors. Cc: linux-kernel@vger.kernel.org Cc: netdev@vger.kernel.org Cc: David S. Miller <davem@davemloft.net> Cc: Eric Dumazet <edumazet@google.com> Cc: Jakub Kicinski <kuba@kernel.org> Cc: Paolo Abeni <pabeni@redhat.com> Cc: Simon Horman <horms@kernel.org> Cc: Leon Romanovsky <leon@kernel.org> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Christian Brauner <brauner@kernel.org> Cc: Kuniyuki Iwashima <kuniyu@google.com> Cc: Lennart Poettering <mzxreary@0pointer.de> Cc: Luca Boccassi <bluca@debian.org> Cc: David Rheinsberg <david@readahead.eu> Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com> Link: https://lore.kernel.org/20250703222314.309967-5-aleksandr.mikhalitsyn@canonical.com Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
30580dc96a
commit
2b9996417e
2 changed files with 3 additions and 3 deletions
|
|
@ -69,7 +69,7 @@ static __inline__ void unix_get_peersec_dgram(struct socket *sock, struct scm_co
|
|||
static __inline__ void scm_set_cred(struct scm_cookie *scm,
|
||||
struct pid *pid, kuid_t uid, kgid_t gid)
|
||||
{
|
||||
scm->pid = get_pid(pid);
|
||||
scm->pid = get_pid(pid);
|
||||
scm->creds.pid = pid_vnr(pid);
|
||||
scm->creds.uid = uid;
|
||||
scm->creds.gid = gid;
|
||||
|
|
@ -78,7 +78,7 @@ static __inline__ void scm_set_cred(struct scm_cookie *scm,
|
|||
static __inline__ void scm_destroy_cred(struct scm_cookie *scm)
|
||||
{
|
||||
put_pid(scm->pid);
|
||||
scm->pid = NULL;
|
||||
scm->pid = NULL;
|
||||
}
|
||||
|
||||
static __inline__ void scm_destroy(struct scm_cookie *scm)
|
||||
|
|
|
|||
|
|
@ -1929,7 +1929,7 @@ static void unix_destruct_scm(struct sk_buff *skb)
|
|||
struct scm_cookie scm;
|
||||
|
||||
memset(&scm, 0, sizeof(scm));
|
||||
scm.pid = UNIXCB(skb).pid;
|
||||
scm.pid = UNIXCB(skb).pid;
|
||||
if (UNIXCB(skb).fp)
|
||||
unix_detach_fds(&scm, skb);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue