]> git.baikalelectronics.ru Git - kernel.git/commit
lpfc: fix missing zero termination in debugfs
authorAlan <gnomes@lxorguk.ukuu.org.uk>
Mon, 15 Feb 2016 19:11:56 +0000 (19:11 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 24 Feb 2016 02:27:02 +0000 (21:27 -0500)
commit6c31f4b1ef5c507b589f3947ab33d9d0b75a7df3
treedea7ecd09b06f5de85a592bb0a90e0fcf235c000
parent0382bc61a0b5eea539359d2f6c11035279a8814e
lpfc: fix missing zero termination in debugfs

If you feed 32 bytes in then the kstrtoull() doesn't receive a terminated
string so will run off the end.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_debugfs.c