aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pnp/manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pnp/manager.c')
-rw-r--r--drivers/pnp/manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pnp/manager.c b/drivers/pnp/manager.c
index 3bda513a6bd3..329dc6c18384 100644
--- a/drivers/pnp/manager.c
+++ b/drivers/pnp/manager.c
@@ -390,7 +390,7 @@ static int pnp_assign_resources(struct pnp_dev *dev, int depnum)
390 up(&pnp_res_mutex); 390 up(&pnp_res_mutex);
391 return 1; 391 return 1;
392 392
393 fail: 393fail:
394 pnp_clean_resource_table(&dev->res); 394 pnp_clean_resource_table(&dev->res);
395 up(&pnp_res_mutex); 395 up(&pnp_res_mutex);
396 return 0; 396 return 0;
@@ -444,7 +444,7 @@ int pnp_manual_config_dev(struct pnp_dev *dev, struct pnp_resource_table *res,
444 kfree(bak); 444 kfree(bak);
445 return 0; 445 return 0;
446 446
447 fail: 447fail:
448 dev->res = *bak; 448 dev->res = *bak;
449 up(&pnp_res_mutex); 449 up(&pnp_res_mutex);
450 kfree(bak); 450 kfree(bak);