diff options
-rw-r--r-- | drivers/net/sfc/falcon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sfc/falcon.c b/drivers/net/sfc/falcon.c index df844defc0a9..6884dc8c1f82 100644 --- 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, | |||
2690 | struct efx_spi_device *spi_device; | 2690 | struct efx_spi_device *spi_device; |
2691 | 2691 | ||
2692 | if (device_type != 0) { | 2692 | if (device_type != 0) { |
2693 | spi_device = kmalloc(sizeof(*spi_device), GFP_KERNEL); | 2693 | spi_device = kzalloc(sizeof(*spi_device), GFP_KERNEL); |
2694 | if (!spi_device) | 2694 | if (!spi_device) |
2695 | return -ENOMEM; | 2695 | return -ENOMEM; |
2696 | spi_device->device_id = device_id; | 2696 | spi_device->device_id = device_id; |