diff options
author | Eric Lapuyade <eric.lapuyade@linux.intel.com> | 2013-09-02 12:34:34 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-09-25 01:35:40 +0200 |
commit | 079797c3b7ca74a4e81496fda5d53adec9f727bf (patch) | |
tree | de9d27280090c02f1781d5c6e64012939ba9eb92 /net/nfc/nci | |
parent | 17936b43f0fdede23582d83a45622751409c99b9 (diff) | |
download | op-kernel-dev-079797c3b7ca74a4e81496fda5d53adec9f727bf.zip op-kernel-dev-079797c3b7ca74a4e81496fda5d53adec9f727bf.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |