projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5238367
)
[IOAT]: Do not dereference THIS_MODULE directly to set unsafe.
author
David S. Miller
<davem@sunset.davemloft.net>
Mon, 26 Jun 2006 07:10:46 +0000
(
00:10
-0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Mon, 26 Jun 2006 07:10:46 +0000
(
00:10
-0700)
Use the __unsafe() macro instead.
Noticed by Miles Lane.
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/dma/ioatdma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/ioatdma.c
b/drivers/dma/ioatdma.c
index 0fdf7fbd6495833b573d97275648213de0103e60..2801d14a5e42e0c193cd143397124a209970d951 100644
(file)
--- a/
drivers/dma/ioatdma.c
+++ b/
drivers/dma/ioatdma.c
@@
-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);