]> git.karo-electronics.de Git - linux-beck.git/commit
NFC: NCI: zero struct spi_transfer variables before usage
authorEric Lapuyade <eric.lapuyade@linux.intel.com>
Mon, 23 Sep 2013 16:02:43 +0000 (18:02 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 25 Sep 2013 12:21:09 +0000 (14:21 +0200)
commita4ada6cadb8a2246f263ff6a0d0cca8832f3970e
tree08250fa111f17418b86de18c2c62e53043fb2bc3
parent5ce3f32b5264b337bfd13a780452a17705307725
NFC: NCI: zero struct spi_transfer variables before usage

Using ARM compiler, and without zero-ing spi_transfer, spi-s3c64xx
driver would issue abnormal errors due to bpw field value being set to
unexpected value. This structure MUST be set to all zeros except for
those field specifically used.

Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/nci/spi.c