Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8164b79 authored by Ashwanth Goli's avatar Ashwanth Goli Committed by Gerrit - the friendly Code Review server
Browse files

packet: remove error prone po->running check



Adding snippets from commit 99c07865 ("packet: in packet_do_bind,
test fanout with bind_lock held") which were missed during propagation.

Fixes: 99c07865 ("packet: in packet_do_bind, test fanout with bind_lock held")
Change-Id: I55ae86da82d7b76a3336917c01324ea600ed8e08
Signed-off-by: default avatarAshwanth Goli <ashwanth@codeaurora.org>
parent b6316113
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -1450,10 +1450,6 @@ static int fanout_add(struct sock *sk, u16 id, u16 type_flags)

	mutex_lock(&fanout_mutex);

	err = -EINVAL;
	if (!po->running)
		goto out;

	err = -EALREADY;
	if (po->fanout)
		goto out;