]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: Fix an off by one in rvu_dbg_qsize_write()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 19 Feb 2021 09:56:32 +0000 (12:56 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 Feb 2021 21:29:25 +0000 (13:29 -0800)
commitbeb8b459530ef0390cec0a3043fb109cd6e502a0
tree408c10207fd18e48f775f445d47c560d00fc10e9
parent68d88287b1867cf4d88b95e0314503fec81836c7
octeontx2-af: Fix an off by one in rvu_dbg_qsize_write()

This code does not allocate enough memory for the NUL terminator so it
ends up putting it one character beyond the end of the buffer.

Fixes: 09dac5d2dce4 ("octeontx2-af: Add NPA aura and pool contexts to debugfs")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c