Skip to content
Snippets Groups Projects
Commit 2d2313c8 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Martyn Welch
Browse files

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: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarMartyn Welch <martyn@welchs.me.uk>
parent 0c8efd61
No related branches found
No related tags found
No related merge requests found
...@@ -558,7 +558,7 @@ static int vme_user_probe(struct vme_dev *vdev) ...@@ -558,7 +558,7 @@ static int vme_user_probe(struct vme_dev *vdev)
vme_user_cdev->owner = THIS_MODULE; vme_user_cdev->owner = THIS_MODULE;
err = cdev_add(vme_user_cdev, MKDEV(VME_MAJOR, 0), VME_DEVS); err = cdev_add(vme_user_cdev, MKDEV(VME_MAJOR, 0), VME_DEVS);
if (err) if (err)
goto err_char; goto err_class;
/* Request slave resources and allocate buffers (128kB wide) */ /* Request slave resources and allocate buffers (128kB wide) */
for (i = SLAVE_MINOR; i < (SLAVE_MAX + 1); i++) { for (i = SLAVE_MINOR; i < (SLAVE_MAX + 1); i++) {
...@@ -618,7 +618,7 @@ static int vme_user_probe(struct vme_dev *vdev) ...@@ -618,7 +618,7 @@ static int vme_user_probe(struct vme_dev *vdev)
if (IS_ERR(vme_user_sysfs_class)) { if (IS_ERR(vme_user_sysfs_class)) {
dev_err(&vdev->dev, "Error creating vme_user class.\n"); dev_err(&vdev->dev, "Error creating vme_user class.\n");
err = PTR_ERR(vme_user_sysfs_class); err = PTR_ERR(vme_user_sysfs_class);
goto err_class; goto err_master;
} }
/* Add sysfs Entries */ /* Add sysfs Entries */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment