diff options
| author | 2020-03-11 08:32:56 +0100 | |
|---|---|---|
| committer | 2020-03-11 10:54:59 +0000 | |
| commit | 61f874d6e001a9ecf5dbd5a9909e257bbe79478a (patch) | |
| tree | fa24b07b4780965d4cc57fe5fc473bc27f18006d /drivers/net/netdevsim/git:/ssh:/git@git.zx2c4.com | |
| parent | drm/i915/overlay: convert to drm_device based logging. (diff) | |
drm/i915/gt: 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>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200311073256.6535-1-tiwai@suse.de
Diffstat (limited to 'drivers/net/netdevsim/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
