aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/vme/vme.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/vme/vme.c')
-rw-r--r--drivers/vme/vme.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/vme/vme.c b/drivers/vme/vme.c
index 95a9f71d793e..5e6c7d74e19f 100644
--- a/drivers/vme/vme.c
+++ b/drivers/vme/vme.c
@@ -1376,6 +1376,7 @@ static int __vme_register_driver_bus(struct vme_driver *drv,
1376 return 0; 1376 return 0;
1377 1377
1378err_reg: 1378err_reg:
1379 put_device(&vdev->dev);
1379 kfree(vdev); 1380 kfree(vdev);
1380err_devalloc: 1381err_devalloc:
1381 list_for_each_entry_safe(vdev, tmp, &drv->devices, drv_list) { 1382 list_for_each_entry_safe(vdev, tmp, &drv->devices, drv_list) {