Skip to content

Commit

Permalink
[Dell S6100] Properly release memory upon ICH driver deinit (#5561)
Browse files Browse the repository at this point in the history
During platform deinitialization, dell_ich is not removed properly and when we do initialize s6100 platform, ICH driver sysfs attributes are not attached. Because of this, get_transceiver_change_event returns error and this leads xcvrd to crash.
  • Loading branch information
aravindmani-1 authored and yxieca committed Oct 14, 2020
1 parent 6c2801b commit 701a304
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ static int dell_ich_remove(struct platform_device *pdev)

// Unmap and release PMC regions
if(ich_data->pmc_base) iounmap(ich_data->pmc_base);
if(ich_data->pmc_alloc) release_region(pmc_res.start, PMC_REG_LEN);
if(ich_data->pmc_alloc) release_mem_region(pmc_res.start, PMC_REG_LEN);

ret = acpi_remove_sci_handler(dell_ich_sci_handler);
if(ret) {
Expand Down

0 comments on commit 701a304

Please sign in to comment.