]> git.baikalelectronics.ru Git - kernel.git/commit
scm: fix a typo in put_cmsg()
authorEric Dumazet <edumazet@google.com>
Fri, 16 Apr 2021 18:35:38 +0000 (11:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Apr 2021 18:41:07 +0000 (11:41 -0700)
commit5fa5388f0d43475597611b47f8077c107f830bfa
tree3960209242c0498745155bce657875612e589982
parentf531442b32d5987b9edd379add35d9e626e427cf
scm: fix a typo in put_cmsg()

We need to store cmlen instead of len in cm->cmsg_len.

Fixes: 49292b1d65fa ("scm: optimize put_cmsg()")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/scm.c