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

Commit 8070b2b1 authored by David S. Miller's avatar David S. Miller
Browse files

[IOAT]: Do not dereference THIS_MODULE directly to set unsafe.



Use the __unsafe() macro instead.

Noticed by Miles Lane.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 52383678
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -824,10 +824,9 @@ static int __init ioat_init_module(void)
{
	/* it's currently unsafe to unload this module */
	/* if forced, worst case is that rmmod hangs */
	if (THIS_MODULE != NULL)
		THIS_MODULE->unsafe = 1;
	__unsafe(THIS_MODULE);

	return pci_module_init(&ioat_pci_drv);
	pci_module_init(&ioat_pci_drv);
}

module_init(ioat_init_module);