]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/nfc/port100.c
NFC: port100: Fix possible buffer overflow
authorThierry Escande <thierry.escande@linux.intel.com>
Sun, 26 Jan 2014 23:31:14 +0000 (00:31 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 16 Feb 2014 22:49:54 +0000 (23:49 +0100)
commitd3815ea95c67e62a2c651e7b5b4e08e95a4cbb13
tree56d9df08bb95cd680bd792c82b2a0972c8882152
parentf1dd56fdc4b7474bfbda1753b42526dc144b55dd
NFC: port100: Fix possible buffer overflow

The arrays for protocols and rf techs must define a number of entries
corresponding to their maximum possible index values.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Thierry Escande <thierry.escande@linux.intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/port100.c