diff options
author | Joe Perches <joe@perches.com> | 2013-06-19 15:15:53 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-08-20 07:06:40 -0400 |
commit | 8be04b9374e59923fa337766aaa74151b95b7099 (patch) | |
tree | 7491f7f6a9ebeb9f78ed41a94591ffd70e99b870 /drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | |
parent | 85dbe706074c8b9091a3bc5f24eff02a044701c3 (diff) |
treewide: Add __GFP_NOWARN to k.alloc calls with v.alloc fallbacks
Don't emit OOM warnings when k.alloc calls fail when
there there is a v.alloc immediately afterwards.
Converted a kmalloc/vmalloc with memset to kzalloc/vzalloc.
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c index 5a3256b083f2..5d5f2685ee2b 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | |||
@@ -1133,7 +1133,7 @@ out: release_firmware(fw); | |||
1133 | */ | 1133 | */ |
1134 | void *t4_alloc_mem(size_t size) | 1134 | void *t4_alloc_mem(size_t size) |
1135 | { | 1135 | { |
1136 | void *p = kzalloc(size, GFP_KERNEL); | 1136 | void *p = kzalloc(size, GFP_KERNEL | __GFP_NOWARN); |
1137 | 1137 | ||
1138 | if (!p) | 1138 | if (!p) |
1139 | p = vzalloc(size); | 1139 | p = vzalloc(size); |