diff --git a/[refs] b/[refs] index d465682a5a31..01872912d682 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e470d8177ed6ae56f4310ce793a57bcb2fed1749 +refs/heads/master: 5c554e6b984ce6b36488b93a7ec8e2752233e7cb diff --git a/trunk/drivers/media/video/vivi.c b/trunk/drivers/media/video/vivi.c index 845be1864f68..5ff9a58b6135 100644 --- a/trunk/drivers/media/video/vivi.c +++ b/trunk/drivers/media/video/vivi.c @@ -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++) {