Skip to content

Commit 44ac7f5

Browse files
committed
parisc: Firmware: Fix returned path for PDC_MODULE_FIND on older machines
Older machines (like my 715/64) don't correctly initialize the device path when returning from the PDC_MODULE_FIND firmware call. Work around that shortcoming by initializing the path with the known values. Signed-off-by: Helge Deller <deller@gmx.de>
1 parent 610cb23 commit 44ac7f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/parisc/kernel/firmware.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,8 @@ int pdc_system_map_find_mods(struct pdc_system_map_mod_info *pdc_mod_info,
464464
unsigned long flags;
465465

466466
spin_lock_irqsave(&pdc_lock, flags);
467-
retval = mem_pdc_call(PDC_SYSTEM_MAP, PDC_FIND_MODULE, __pa(pdc_result),
467+
memcpy(pdc_result2, mod_path, sizeof(*mod_path));
468+
retval = mem_pdc_call(PDC_SYSTEM_MAP, PDC_FIND_MODULE, __pa(pdc_result),
468469
__pa(pdc_result2), mod_index);
469470
convert_to_wide(pdc_result);
470471
memcpy(pdc_mod_info, pdc_result, sizeof(*pdc_mod_info));

0 commit comments

Comments
 (0)