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

Use the __unsafe() macro instead.

Noticed by Miles Lane.

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller 2006-06-26 00:10:46 -07:00
parent 52383678a8
commit 8070b2b1ec
1 changed files with 2 additions and 3 deletions

View File

@ -824,10 +824,9 @@ static int __init ioat_init_module(void)
{ {
/* it's currently unsafe to unload this module */ /* it's currently unsafe to unload this module */
/* if forced, worst case is that rmmod hangs */ /* if forced, worst case is that rmmod hangs */
if (THIS_MODULE != NULL) __unsafe(THIS_MODULE);
THIS_MODULE->unsafe = 1;
return pci_module_init(&ioat_pci_drv); pci_module_init(&ioat_pci_drv);
} }
module_init(ioat_init_module); module_init(ioat_init_module);