diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2018-06-28 11:20:11 +0300 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-07-07 11:53:45 +0300 |
commit | 48360246162b50e84a6e63ed572fdda5e038518b (patch) | |
tree | f5ed143d1b0ca4808ab45874c80148cf131f4f40 /drivers/mtd/chips/cfi_cmdset_0002.c | |
parent | 98534a58c8a40cdc9e3bcb04d74719fbcedfeb52 (diff) | |
download | linux-48360246162b50e84a6e63ed572fdda5e038518b.tar.xz |
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>
Diffstat (limited to 'drivers/mtd/chips/cfi_cmdset_0002.c')
0 files changed, 0 insertions, 0 deletions