diff options
author | Salva Peiró <speirofr@gmail.com> | 2015-07-23 14:26:19 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2015-08-03 17:23:41 +0200 |
commit | e203db293863fa15b4b1917d4398fb5bd63c4e88 (patch) | |
tree | f5f4dcbded8e90623ee1aab4d5519a032e25a86a /include/soc | |
parent | 5835b6a64ce39434d5cc9857769c73982d488b42 (diff) |
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: Salva Peiró <speirofr@gmail.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/soc')
0 files changed, 0 insertions, 0 deletions