Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197308
b: refs/heads/master
c: a16e148
h: refs/heads/master
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed May 11, 2010
1 parent 3de6775 commit 0cf7f47
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 3324fb405340cf52fe361697a86d235587402d9c
refs/heads/master: a16e1485c758c236915ac1956694d11bff5e5daa
3 changes: 2 additions & 1 deletion trunk/drivers/staging/hv/RingBuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,8 @@ int RingBufferRead(RING_BUFFER_INFO *InRingInfo, void *Buffer,
u64 prevIndices = 0;
unsigned long flags;

ASSERT(BufferLen > 0);
if (BufferLen <= 0)
return -EINVAL;

spin_lock_irqsave(&InRingInfo->ring_lock, flags);

Expand Down

0 comments on commit 0cf7f47

Please sign in to comment.