diff options
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/platforms/pseries/eeh_event.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/pseries/eeh_event.c b/arch/powerpc/platforms/pseries/eeh_event.c index 4cb375c0f8d1..fb506317ebb0 100644 --- a/arch/powerpc/platforms/pseries/eeh_event.c +++ b/arch/powerpc/platforms/pseries/eeh_event.c | |||
@@ -85,8 +85,10 @@ static int eeh_event_handler(void * dummy) | |||
85 | set_current_state(TASK_INTERRUPTIBLE); /* Don't add to load average */ | 85 | set_current_state(TASK_INTERRUPTIBLE); /* Don't add to load average */ |
86 | edev = handle_eeh_events(event); | 86 | edev = handle_eeh_events(event); |
87 | 87 | ||
88 | eeh_clear_slot(eeh_dev_to_of_node(edev), EEH_MODE_RECOVERING); | 88 | if (edev) { |
89 | pci_dev_put(edev->pdev); | 89 | eeh_clear_slot(eeh_dev_to_of_node(edev), EEH_MODE_RECOVERING); |
90 | pci_dev_put(edev->pdev); | ||
91 | } | ||
90 | 92 | ||
91 | kfree(event); | 93 | kfree(event); |
92 | mutex_unlock(&eeh_event_mutex); | 94 | mutex_unlock(&eeh_event_mutex); |