Skip to content

Commit

Permalink
NFC: NCI: Fix wrong allocation size in nci_spi_allocate_device()
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Eric Lapuyade authored and Samuel Ortiz committed Sep 24, 2013
1 parent 17936b4 commit 079797c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/nfc/nci/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 079797c

Please sign in to comment.