Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eefbc594 authored by Mark Rusk's avatar Mark Rusk Committed by Greg Kroah-Hartman
Browse files

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 [#1] SMP
   .
   .
   .
 RIP  [<ffffffffa033e270>] ilo_probe+0xec/0xe7c [hpilo]

Signed-off-by: default avatarMark Rusk <mark.rusk@hp.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b65c4014
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -759,7 +759,7 @@ static int ilo_probe(struct pci_dev *pdev,


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


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


MODULE_VERSION("1.4");
MODULE_VERSION("1.4.1");
MODULE_ALIAS(ILO_NAME);
MODULE_ALIAS(ILO_NAME);
MODULE_DESCRIPTION(ILO_NAME);
MODULE_DESCRIPTION(ILO_NAME);
MODULE_AUTHOR("David Altobelli <david.altobelli@hp.com>");
MODULE_AUTHOR("David Altobelli <david.altobelli@hp.com>");