OSDN Git Service

mfd: aat2870: Use scnprintf() for avoiding potential buffer overflow
authorTakashi Iwai <tiwai@suse.de>
Wed, 11 Mar 2020 07:47:38 +0000 (08:47 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 30 Mar 2020 06:35:28 +0000 (07:35 +0100)
commitc2b5fdfba2a915b5001d3ec63f4b3fc651c22da4
tree434a90a43d526d2a2cfb16ee51cb711d894a3f2a
parente3fadb35bc1be0078e9ff5f9a55811f7eb1a5d05
mfd: aat2870: Use scnprintf() for avoiding potential buffer overflow

There is still one call of sprintf() without checking the proper
buffer overflow in aat2870_dump_reg().  Replace it with scnprintf()
call for covering that.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/aat2870-core.c