Skip to content

Commit

Permalink
Merge "Address potential memory leak and double-free in vhost_rx_hand…
Browse files Browse the repository at this point in the history
…ler." into R3.2
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Apr 8, 2017
2 parents b0544c5 + bb9db74 commit ce0920a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions linux/vhost_dev.c
Expand Up @@ -136,6 +136,7 @@ vhost_rx_handler(struct sk_buff **pskb)
return RX_HANDLER_PASS;

skb->dev = vdev;
*pskb = skb;

(void)__sync_fetch_and_add(&vdev->stats.rx_bytes, skb->len);
(void)__sync_fetch_and_add(&vdev->stats.rx_packets, 1);
Expand Down

0 comments on commit ce0920a

Please sign in to comment.