Commit 0ef49cc3 authored by Sebastian Smolorz via Xenomai's avatar Sebastian Smolorz via Xenomai Committed by Jan Kiszka

net/tcp: return ufd in rt_tcp_accept()

Fix compilation error in rt_tcp_accept() when returning its socket's own file
descriptor.
Signed-off-by: 's avatarSebastian Smolorz <sebastian.smolorz@gmx.de>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent a4ec3f65
......@@ -1668,7 +1668,7 @@ static int rt_tcp_accept(struct tcp_socket *ts, struct sockaddr *addr,
ts->is_accepted = 1;
rtdm_lock_put_irqrestore(&ts->socket_lock, context);
ret = rt_socket_fd(&ts->sock)->fd;
ret = rtdm_fd_ufd(rt_socket_fd(&ts->sock));
err:
/* it is not critical to leave this unlocked
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment