summaryrefslogtreecommitdiff
path: root/net/nfc/nci
diff options
context:
space:
mode:
authorEric Lapuyade <eric.lapuyade@linux.intel.com>2013-09-02 14:34:34 +0400
committerSamuel Ortiz <sameo@linux.intel.com>2013-09-25 03:35:40 +0400
commit079797c3b7ca74a4e81496fda5d53adec9f727bf (patch)
treede9d27280090c02f1781d5c6e64012939ba9eb92 /net/nfc/nci
parent17936b43f0fdede23582d83a45622751409c99b9 (diff)
downloadlinux-079797c3b7ca74a4e81496fda5d53adec9f727bf.tar.xz
NFC: NCI: Fix wrong allocation size in nci_spi_allocate_device()
Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc/nci')
-rw-r--r--net/nfc/nci/spi.c2
1 files changed, 1 insertions, 1 deletions
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;