Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit e203db29 authored by Salva Peiró's avatar Salva Peiró Committed by Joerg Roedel
Browse files

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



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>
parent 5835b6a6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment