aboutsummaryrefslogtreecommitdiffstats
path: root/net/nfc
diff options
context:
space:
mode:
authorEric Lapuyade <eric.lapuyade@linux.intel.com>2013-09-02 06:34:34 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2013-09-24 19:35:40 -0400
commit079797c3b7ca74a4e81496fda5d53adec9f727bf (patch)
treede9d27280090c02f1781d5c6e64012939ba9eb92 /net/nfc
parent17936b43f0fdede23582d83a45622751409c99b9 (diff)
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,
150 if (!supported_protocols) 150 if (!supported_protocols)
151 return NULL; 151 return NULL;
152 152
153 ndev = devm_kzalloc(&spi->dev, sizeof(struct nci_dev), GFP_KERNEL); 153 ndev = devm_kzalloc(&spi->dev, sizeof(struct nci_spi_dev), GFP_KERNEL);
154 if (!ndev) 154 if (!ndev)
155 return NULL; 155 return NULL;
156 156