summaryrefslogtreecommitdiff
path: root/drivers/mfd/timberdale.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-04-02 07:04:05 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2020-04-02 19:35:26 +0300
commitd293d3af2dee0c5f5d41b41ff0a0b091b2c45db8 (patch)
tree5d76bb2b2ffdb2935322bc4e5ab1663d3462505c /drivers/mfd/timberdale.h
parent0434c9f40442f8cb39232e0c393e90a3abe0728d (diff)
downloadlinux-d293d3af2dee0c5f5d41b41ff0a0b091b2c45db8.tar.xz
ocfs2: use scnprintf() for avoiding potential buffer overflow
Since snprintf() returns the would-be-output size instead of the actual output size, the succeeding calls may go beyond the given buffer limit. Fix it by replacing with scnprintf(). Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Joseph Qi <joseph.qi@linux.alibaba.com> Cc: Mark Fasheh <mark@fasheh.com> Cc: Joel Becker <jlbec@evilplan.org> Cc: Joseph Qi <jiangqi903@gmail.com> Cc: Changwei Ge <gechangwei@live.cn> Cc: Gang He <ghe@suse.com> Cc: Jun Piao <piaojun@huawei.com> Link: http://lkml.kernel.org/r/20200311093516.25300-1-tiwai@suse.de Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/mfd/timberdale.h')
0 files changed, 0 insertions, 0 deletions