Commit 4e03b696 authored by Salva Peiró's avatar Salva Peiró Committed by Suman Anna
Browse files

iommu/omap: Fix debug_read_tlb() to use seq_printf()



[ Upstream commit e203db29 ]

The debug_read_tlb() uses the sprintf() functions directly on the buffer
allocated by buf = kmalloc(count), without taking into account the size
of the buffer, with the consequence corrupting the heap, depending on
the count requested by the user.

The patch fixes the issue replacing sprintf() by seq_printf().

Signed-off-by: default avatarSalva Peiró <speirofr@gmail.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
[s-anna@ti.com: cherry-pick commit 'e203db29' from v4.3]
Signed-off-by: default avatarSuman Anna <s-anna@ti.com>
parent ffd06e9c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment