Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197312
b: refs/heads/master
c: 7906968
h: refs/heads/master
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed May 11, 2010
1 parent fa75d59 commit 4307ed7
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 7a09876d2a68aab6c7a7d9df60eb0eb13467af11
refs/heads/master: 790696847dfad8b2d968ce82cc1be58ebacefead
6 changes: 5 additions & 1 deletion trunk/drivers/staging/hv/NetVsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,11 @@ static int NetVscInitializeSendBufferWithNetVsp(struct hv_device *Device)
DPRINT_EXIT(NETVSC);
return -1;
}
ASSERT(netDevice->SendBufferSize > 0);
if (netDevice->SendBufferSize <= 0) {
ret = -EINVAL;
goto Cleanup;
}

/* page-size grandularity */
/* ASSERT((netDevice->SendBufferSize & (PAGE_SIZE - 1)) == 0); */

Expand Down

0 comments on commit 4307ed7

Please sign in to comment.