On Mon, 2017-05-01 at 11:57 +0300, Leon Romanovsky wrote: > On Mon, May 01, 2017 at 03:41:16PM +0900, Michael Mera wrote: > > > > In write to debugfs file 'resource_stats' the local buffer > > 'tmp_str' is > > written at index 'count-1' where 'count' is the size of the write, > > so > > potentially 0. > > > > This patch filters odd values for the write size/position to avoid > > this > > type of problem. > > > > Signed-off-by: Michael Mera <dev@xxxxxxxxxxxxxxx> > > --- > > drivers/infiniband/hw/ocrdma/ocrdma_stats.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > Thanks, > Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxxxx> Thanks, applied. -- Doug Ledford <dledford@xxxxxxxxxx> GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html