Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98510
b: refs/heads/master
c: 5c554e6
h: refs/heads/master
v: v3
  • Loading branch information
Marcin Slusarz authored and Mauro Carvalho Chehab committed Jun 26, 2008
1 parent 42e2af6 commit fa75ecc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: e470d8177ed6ae56f4310ce793a57bcb2fed1749
refs/heads/master: 5c554e6b984ce6b36488b93a7ec8e2752233e7cb
7 changes: 4 additions & 3 deletions trunk/drivers/media/video/vivi.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,13 +327,14 @@ static void vivi_fillbuff(struct vivi_dev *dev, struct vivi_buffer *buf)
int hmax = buf->vb.height;
int wmax = buf->vb.width;
struct timeval ts;
char *tmpbuf = kmalloc(wmax * 2, GFP_ATOMIC);
char *tmpbuf;
void *vbuf = videobuf_to_vmalloc(&buf->vb);

if (!tmpbuf)
if (!vbuf)
return;

if (!vbuf)
tmpbuf = kmalloc(wmax * 2, GFP_ATOMIC);
if (!tmpbuf)
return;

for (h = 0; h < hmax; h++) {
Expand Down

0 comments on commit fa75ecc

Please sign in to comment.