aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorJanne Grunau <janne-dvb@grunau.be>2008-04-24 19:19:22 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-26 08:10:49 -0400
commit094f9b4b317b235b8d7fa03b356b9a3f3633b55b (patch)
treee10e683210a38f9b3532fc7cc9f0fd4affc85281 /drivers/media
parent50fa46b25490039ef51ef0dc8afdded60c4d3b59 (diff)
V4L/DVB (7734): em28xx: copy and paste error in em28xx_init_isoc
Fixes a copy and paste error in check of kzalloc return value. The check block was copied from the previous allocation but the variable wasn't exchanged. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/em28xx/em28xx-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/em28xx/em28xx-core.c b/drivers/media/video/em28xx/em28xx-core.c
index f8c41d8c74c4..5d837c16ee22 100644
--- a/drivers/media/video/em28xx/em28xx-core.c
+++ b/drivers/media/video/em28xx/em28xx-core.c
@@ -650,7 +650,7 @@ int em28xx_init_isoc(struct em28xx *dev, int max_packets,
650 650
651 dev->isoc_ctl.transfer_buffer = kzalloc(sizeof(void *)*num_bufs, 651 dev->isoc_ctl.transfer_buffer = kzalloc(sizeof(void *)*num_bufs,
652 GFP_KERNEL); 652 GFP_KERNEL);
653 if (!dev->isoc_ctl.urb) { 653 if (!dev->isoc_ctl.transfer_buffer) {
654 em28xx_errdev("cannot allocate memory for usbtransfer\n"); 654 em28xx_errdev("cannot allocate memory for usbtransfer\n");
655 kfree(dev->isoc_ctl.urb); 655 kfree(dev->isoc_ctl.urb);
656 return -ENOMEM; 656 return -ENOMEM;