OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa402b2
)
sfc: Use kzalloc() to ensure struct efx_spi_device is fully initialised
author
Ben Hutchings
<bhutchings@solarflare.com>
Sat, 13 Dec 2008 06:08:50 +0000
(22:08 -0800)
committer
David S. Miller
<davem@davemloft.net>
Sat, 13 Dec 2008 06:08:50 +0000
(22:08 -0800)
Currently the mtd field is not initialised early enough.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/falcon.c
patch
|
blob
|
history
diff --git
a/drivers/net/sfc/falcon.c
b/drivers/net/sfc/falcon.c
index
df844de
..
6884dc8
100644
(file)
--- a/
drivers/net/sfc/falcon.c
+++ b/
drivers/net/sfc/falcon.c
@@
-2690,7
+2690,7
@@
static int falcon_spi_device_init(struct efx_nic *efx,
struct efx_spi_device *spi_device;
if (device_type != 0) {
- spi_device = k
m
alloc(sizeof(*spi_device), GFP_KERNEL);
+ spi_device = k
z
alloc(sizeof(*spi_device), GFP_KERNEL);
if (!spi_device)
return -ENOMEM;
spi_device->device_id = device_id;