From: Eric Lapuyade Date: Mon, 2 Sep 2013 10:34:34 +0000 (+0200) Subject: NFC: NCI: Fix wrong allocation size in nci_spi_allocate_device() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=079797c3b7ca74a4e81496fda5d53adec9f727bf;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git NFC: NCI: Fix wrong allocation size in nci_spi_allocate_device() Signed-off-by: Eric Lapuyade Signed-off-by: Samuel Ortiz --- diff --git a/net/nfc/nci/spi.c b/net/nfc/nci/spi.c index c7cf37ba7298..b6795955432d 100644 --- a/net/nfc/nci/spi.c +++ b/net/nfc/nci/spi.c @@ -150,7 +150,7 @@ struct nci_spi_dev *nci_spi_allocate_device(struct spi_device *spi, if (!supported_protocols) return NULL; - ndev = devm_kzalloc(&spi->dev, sizeof(struct nci_dev), GFP_KERNEL); + ndev = devm_kzalloc(&spi->dev, sizeof(struct nci_spi_dev), GFP_KERNEL); if (!ndev) return NULL;