diff options
Diffstat (limited to 'drivers/vme/vme.c')
-rw-r--r-- | drivers/vme/vme.c | 1 |
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 | ||
1378 | err_reg: | 1378 | err_reg: |
1379 | put_device(&vdev->dev); | ||
1379 | kfree(vdev); | 1380 | kfree(vdev); |
1380 | err_devalloc: | 1381 | err_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) { |