diff options
Diffstat (limited to 'drivers/base/platform.c')
-rw-r--r-- | drivers/base/platform.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c index 667f282f8b7b..7d4bdaf557cf 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c | |||
@@ -200,6 +200,7 @@ int platform_device_add_resources(struct platform_device *pdev, | |||
200 | return -ENOMEM; | 200 | return -ENOMEM; |
201 | } | 201 | } |
202 | 202 | ||
203 | kfree(pdev->resource); | ||
203 | pdev->resource = r; | 204 | pdev->resource = r; |
204 | pdev->num_resources = num; | 205 | pdev->num_resources = num; |
205 | return 0; | 206 | return 0; |