]> git.baikalelectronics.ru Git - kernel.git/commit
cxlflash: off by one bug in cxlflash_show_port_status()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 14 Aug 2015 20:35:25 +0000 (23:35 +0300)
committerJames Bottomley <JBottomley@Odin.com>
Thu, 27 Aug 2015 01:06:31 +0000 (18:06 -0700)
commit119b1bef0c5a869d6b0a7cbfc26e4e134184f030
tree53b1301b826c4d1385a50954859406830c649a79
parent4385f556bf71ac3bc21c3bf36f8a6fef8c43cb5f
cxlflash: off by one bug in cxlflash_show_port_status()

The > should be >= or we read one element past the end of the array.

Fixes: 350d8fc94d1d ('cxlflash: Base support for IBM CXL Flash Adapter')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/cxlflash/main.c