Skip to content

Commit

Permalink
[Dell S6100] Properly release memory upon ICH driver deinit (sonic-ne…
Browse files Browse the repository at this point in the history
…t#5561)

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 santhosh-kt committed Feb 25, 2021
1 parent 0eb1dfd commit 09a98cd
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 09a98cd

Please sign in to comment.