Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: vme: vme_user: Fix some error handling paths in 'vme_user_probe()'

2 gotos in error handling paths branch to the wrong label.
Fix it.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Christophe JAILLET and committed by
Greg Kroah-Hartman
71e9513b 0c27d174

+2 -2
+2 -2
drivers/staging/vme/devices/vme_user.c
··· 558 558 vme_user_cdev->owner = THIS_MODULE; 559 559 err = cdev_add(vme_user_cdev, MKDEV(VME_MAJOR, 0), VME_DEVS); 560 560 if (err) 561 - goto err_char; 561 + goto err_class; 562 562 563 563 /* Request slave resources and allocate buffers (128kB wide) */ 564 564 for (i = SLAVE_MINOR; i < (SLAVE_MAX + 1); i++) { ··· 618 618 if (IS_ERR(vme_user_sysfs_class)) { 619 619 dev_err(&vdev->dev, "Error creating vme_user class.\n"); 620 620 err = PTR_ERR(vme_user_sysfs_class); 621 - goto err_class; 621 + goto err_master; 622 622 } 623 623 624 624 /* Add sysfs Entries */