Skip to content

Commit 39d163b

Browse files
marker55gregkh
authored andcommitted
drivers/misc/hpilo: Correct panic when an AUX iLO is detected
commit eefbc594abbb1b7e6e7eeadb65ae7c7538474210 upstream. Using an uninitialized variable 'devnum' after 'goto out;' was causing panic. Just go ahead and return, we need to ignore AUX iLO devs. Oops: 0002 [#1] SMP . . . RIP [<ffffffffa033e270>] ilo_probe+0xec/0xe7c [hpilo] Signed-off-by: Mark Rusk <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 2880e37 commit 39d163b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/misc/hpilo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ static int ilo_probe(struct pci_dev *pdev,
759759

760760
/* Ignore subsystem_device = 0x1979 (set by BIOS) */
761761
if (pdev->subsystem_device == 0x1979)
762-
goto out;
762+
return 0;
763763

764764
if (max_ccb > MAX_CCB)
765765
max_ccb = MAX_CCB;
@@ -899,7 +899,7 @@ static void __exit ilo_exit(void)
899899
class_destroy(ilo_class);
900900
}
901901

902-
MODULE_VERSION("1.4");
902+
MODULE_VERSION("1.4.1");
903903
MODULE_ALIAS(ILO_NAME);
904904
MODULE_DESCRIPTION(ILO_NAME);
905905
MODULE_AUTHOR("David Altobelli <[email protected]>");

0 commit comments

Comments
 (0)