]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 13 Jul 2016 07:44:35 +0000 (00:44 -0700)
commiteeff4f0cdde4f054e8c804074005fcc8149ad682
tree11da837f7117a3963bf5992a0d7438f3c859dc20
parent1f37f749e4a52e565b5f8a484847c3b41f7cfd9a
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>
Orabug: 23762058
(cherry picked from commit 0872774d8a319676dea7416e0cf85bec63eea0d0)
Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
drivers/scsi/lpfc/lpfc_debugfs.c