summaryrefslogtreecommitdiffstats
path: root/net/nfc
diff options
context:
space:
mode:
authorEric Lapuyade <eric.lapuyade@linux.intel.com>2013-09-02 12:34:34 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2013-09-25 01:35:40 +0200
commit079797c3b7ca74a4e81496fda5d53adec9f727bf (patch)
treede9d27280090c02f1781d5c6e64012939ba9eb92 /net/nfc
parentNFC: Standardize logging style (diff)
downloadlinux-079797c3b7ca74a4e81496fda5d53adec9f727bf.tar.xz
linux-079797c3b7ca74a4e81496fda5d53adec9f727bf.zip
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')
-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;