Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 370958
b: refs/heads/master
c: 1aef76e
h: refs/heads/master
v: v3
  • Loading branch information
Wei Yongjun authored and Rusty Russell committed Apr 2, 2013
1 parent eae47ee commit 7f855ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 916cdabc31cc245f4ae81d8113e24446225874c8
refs/heads/master: 1aef76e9c4c616c91233ece9850e89c91f3fd92a
4 changes: 3 additions & 1 deletion trunk/drivers/net/caif/caif_virtio.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,10 @@ static int cfv_create_genpool(struct cfv_info *cfv)
cfv->reserved_size = num_possible_cpus() * cfv->ndev->mtu;
cfv->reserved_mem = gen_pool_alloc(cfv->genpool,
cfv->reserved_size);
if (!cfv->reserved_mem)
if (!cfv->reserved_mem) {
err = -ENOMEM;
goto err;
}

cfv->watermark_tx = virtqueue_get_vring_size(cfv->vq_tx);
return 0;
Expand Down

0 comments on commit 7f855ee

Please sign in to comment.