Skip to content

Commit

Permalink
V4L/DVB (7734): em28xx: copy and paste error in em28xx_init_isoc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Janne Grunau authored and Mauro Carvalho Chehab committed Apr 26, 2008
1 parent 50fa46b commit 094f9b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/em28xx/em28xx-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,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;
Expand Down

0 comments on commit 094f9b4

Please sign in to comment.