Skip to content

Commit eefbc59

Browse files
marker55gregkh
authored andcommitted
drivers/misc/hpilo: Correct panic when an AUX iLO is detected
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 [raspberrypi#1] SMP . . . RIP [<ffffffffa033e270>] ilo_probe+0xec/0xe7c [hpilo] Signed-off-by: Mark Rusk <mark.rusk@hp.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent b65c401 commit eefbc59

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎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 <david.altobelli@hp.com>");

0 commit comments

Comments
 (0)