Merge branch 'vhost-net' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
This commit is contained in:
commit
a301e1703e
1 changed files with 3 additions and 2 deletions
|
@ -129,8 +129,9 @@ static void handle_tx(struct vhost_net *net)
|
||||||
size_t hdr_size;
|
size_t hdr_size;
|
||||||
struct socket *sock;
|
struct socket *sock;
|
||||||
|
|
||||||
sock = rcu_dereference_check(vq->private_data,
|
/* TODO: check that we are running from vhost_worker?
|
||||||
lockdep_is_held(&vq->mutex));
|
* Not sure it's worth it, it's straight-forward enough. */
|
||||||
|
sock = rcu_dereference_check(vq->private_data, 1);
|
||||||
if (!sock)
|
if (!sock)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue