powernv/eeh: Fix possible buffer overrun in ioda_eeh_phb_diag()
authorBrian W Hart <hartb@linux.vnet.ibm.com>
Thu, 19 Dec 2013 23:14:07 +0000 (17:14 -0600)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 30 Dec 2013 03:02:31 +0000 (14:02 +1100)
commit20acebdfaec3e15d8a27ab25bf4a2f91b2afa757
treeb0597334620062b4f406c04d6e28f2afe2b44dc3
parent20151169f1de4b170368fdb574024027620d0d49
powernv/eeh: Fix possible buffer overrun in ioda_eeh_phb_diag()

PHB diagnostic buffer may be smaller than PAGE_SIZE, especially when
PAGE_SIZE > 4KB.

Signed-off-by: Brian W Hart <hartb@linux.vnet.ibm.com>
Acked-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powernv/eeh-ioda.c