summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 17:19:22 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 17:19:22 -0300
commit18a564e23580d8b0ddedf570dafa7abefd43608d (patch)
treeacfbfb491cebd50a11e85bd4fc0148ccb602f2e3 /linux/drivers
parent2c81196ca33ba04ddedc0117e2bc5fb5eb92df1f (diff)
downloadmediapointer-dvb-s2-18a564e23580d8b0ddedf570dafa7abefd43608d.tar.gz
mediapointer-dvb-s2-18a564e23580d8b0ddedf570dafa7abefd43608d.tar.bz2
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-of-by: "Janne Grunau <janne-dvb@grunau.be> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/em28xx/em28xx-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/em28xx/em28xx-core.c b/linux/drivers/media/video/em28xx/em28xx-core.c
index 393425487..1a30e361c 100644
--- a/linux/drivers/media/video/em28xx/em28xx-core.c
+++ b/linux/drivers/media/video/em28xx/em28xx-core.c
@@ -659,7 +659,7 @@ int em28xx_init_isoc(struct em28xx *dev, int max_packets,
dev->isoc_ctl.transfer_buffer = kzalloc(sizeof(void *)*num_bufs,
GFP_KERNEL);
- if (!dev->isoc_ctl.urb) {
+ if (!dev->isoc_ctl.transfer_buffer) {
em28xx_errdev("cannot allocate memory for usbtransfer\n");
kfree(dev->isoc_ctl.urb);
return -ENOMEM;