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:
d3f8ef1
)
igb: Fix for improper allocation flag in igb_get_i2c_client
author
Carolyn Wyborny
<
[email protected]
>
Wed, 23 Jan 2013 03:43:01 +0000
(
03:43
+0000)
committer
Jeff Kirsher
<
[email protected]
>
Fri, 15 Feb 2013 09:11:56 +0000
(
01:11
-0800)
This patch fixes the allocation function in igb_get_i2c_client to use
GFP_ATOMIC instead of GFP_KERNEL because we have a spinlock.
Reported-by: Dan Carpenter <
[email protected]
>
Signed-off-by: Carolyn Wyborny <
[email protected]
>
Tested-by: Aaron Brown <
[email protected]
>
Signed-off-by: Jeff Kirsher <
[email protected]
>
drivers/net/ethernet/intel/igb/igb_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/intel/igb/igb_main.c
b/drivers/net/ethernet/intel/igb/igb_main.c
index d84f28c683c5d85b00d97d3fbea2101663e19da4..c19a35c556f9bcc40a8681e1ccb94dc0df2b127f 100644
(file)
--- a/
drivers/net/ethernet/intel/igb/igb_main.c
+++ b/
drivers/net/ethernet/intel/igb/igb_main.c
@@
-7751,7
+7751,7
@@
igb_get_i2c_client(struct igb_adapter *adapter, u8 dev_addr)
}
/* no client_list found, create a new one */
- client_list = kzalloc(sizeof(*client_list), GFP_
KERNEL
);
+ client_list = kzalloc(sizeof(*client_list), GFP_
ATOMIC
);
if (client_list == NULL)
goto exit;