projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d033d93
)
[PATCH] chelsio: fix kmalloc failure in t1_espi_create
author
Eric Sesterhenn
<snakebyte@gmx.de>
Sat, 4 Mar 2006 22:16:00 +0000
(
01:16
+0300)
committer
Jeff Garzik
<jeff@garzik.org>
Mon, 6 Mar 2006 19:38:00 +0000
(14:38 -0500)
memset() is called before check.
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/chelsio/espi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/chelsio/espi.c
b/drivers/net/chelsio/espi.c
index 230642571c9247cad7dc91b6039ece1fb0c260b9..e824acaf188a89ddb99b281257f0b50fefe79f7c 100644
(file)
--- a/
drivers/net/chelsio/espi.c
+++ b/
drivers/net/chelsio/espi.c
@@
-296,9
+296,7
@@
void t1_espi_destroy(struct peespi *espi)
struct peespi *t1_espi_create(adapter_t *adapter)
{
- struct peespi *espi = kmalloc(sizeof(*espi), GFP_KERNEL);
-
- memset(espi, 0, sizeof(*espi));
+ struct peespi *espi = kzalloc(sizeof(*espi), GFP_KERNEL);
if (espi)
espi->adapter = adapter;