Commit 3112c70b authored by Tiwei Bie's avatar Tiwei Bie Committed by Greg Kroah-Hartman
Browse files

um: Fix FD copy size in os_rcv_fd_msg()



[ Upstream commit df447a3b ]

When copying FDs, the copy size should not include the control
message header (cmsghdr). Fix it.

Fixes: 5cde6096 ("um: generalize os_rcv_fd")
Signed-off-by: default avatarTiwei Bie <tiwei.btw@antgroup.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 00e98b5a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment