linux/drivers/mtd/chips
Geert Uytterhoeven 4836024616 mtd: Use kasprintf() instead of fixed buffer formatting
Using "%4.4X" in the calculation of the buffer size is misleading, as
the format string literal has no relation to the actual size needed.
Hence this is fragile w.r.t. future modification.

As this is not a hot path, fix this by replacing the formatting in a
fixed buffer by kasprintf().

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
2018-07-07 10:53:45 +02:00
..
cfi_cmdset_0001.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
cfi_cmdset_0002.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
cfi_cmdset_0020.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
cfi_probe.c mtd: cfi: Add early fixup for S70GL02GS 2018-05-04 09:52:38 +02:00
cfi_util.c mtd: cfi: deinline large functions 2015-05-27 12:42:16 -07:00
chipreg.c mtd: simplify return logic in do_map_probe() 2012-03-27 00:35:06 +01:00
fwh_lock.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
gen_probe.c mtd: Use kasprintf() instead of fixed buffer formatting 2018-07-07 10:53:45 +02:00
jedec_probe.c MTD changes: 2018-04-06 12:15:41 -07:00
Kconfig mtd: avoid stack overflow in MTD CFI code 2016-04-03 16:46:24 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
map_absent.c mtd: remove retlen zeroing duplication 2012-03-27 00:29:34 +01:00
map_ram.c mtd: Stop updating erase_info->state and calling mtd_erase_callback() 2018-03-21 09:50:56 +01:00
map_rom.c mtd: remove the get_unmapped_area method 2017-11-13 21:39:18 +01:00