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-Tag: upstream/snapshot3+hdmi~3572^2~3^2^2~361^2~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=079797c3b7ca74a4e81496fda5d53adec9f727bf;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.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 c7cf37b..b679595 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;