diff mbox

tm6000: bugfix outp in function copy_multiplexed

Message ID 1274991389-6439-1-git-send-email-stefan.ringel@arcor.de (mailing list archive)
State Superseded
Headers show

Commit Message

Stefan Ringel May 27, 2010, 8:16 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/staging/tm6000/tm6000-video.c b/drivers/staging/tm6000/tm6000-video.c
index 31c574f..96cbbf7 100644
--- a/drivers/staging/tm6000/tm6000-video.c
+++ b/drivers/staging/tm6000/tm6000-video.c
@@ -358,7 +358,7 @@  static int copy_multiplexed(u8 *ptr, unsigned long len,
 	while (len>0) {
 		cpysize=min(len,buf->vb.size-pos);
 		//printk("Copying %d bytes (max=%lu) from %p to %p[%u]\n",cpysize,(*buf)->vb.size,ptr,out_p,pos);
-		memcpy(&out_p[pos], ptr, cpysize);
+		memcpy(&outp[pos], ptr, cpysize);
 		pos+=cpysize;
 		ptr+=cpysize;
 		len-=cpysize;
@@ -370,8 +370,8 @@  static int copy_multiplexed(u8 *ptr, unsigned long len,
 			get_next_buf (dma_q, &buf);
 			if (!buf)
 				break;
-			out_p = videobuf_to_vmalloc(&(buf->vb));
-			if (!out_p)
+			outp = videobuf_to_vmalloc(&(buf->vb));
+			if (!outp)
 				return rc;
 			pos = 0;
 		}