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

Commit a301e170 authored by David S. Miller's avatar David S. Miller
Browse files
parents 0147fc05 11cd1a8b
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -129,8 +129,9 @@ static void handle_tx(struct vhost_net *net)
	size_t hdr_size;
	struct socket *sock;

	sock = rcu_dereference_check(vq->private_data,
				     lockdep_is_held(&vq->mutex));
	/* TODO: check that we are running from vhost_worker?
	 * Not sure it's worth it, it's straight-forward enough. */
	sock = rcu_dereference_check(vq->private_data, 1);
	if (!sock)
		return;