drm/msm/rd: fix crash with long process cmdlines
authorRob Clark <robdclark@gmail.com>
Tue, 25 Sep 2018 17:54:00 +0000 (13:54 -0400)
committerRob Clark <robdclark@gmail.com>
Thu, 4 Oct 2018 00:24:54 +0000 (20:24 -0400)
commitb689a830f5264e3a53307ba468e376e9f95f15e0
treeae96c941ea7706a5f4daa4c4f9a2eeaa03b3816b
parent9027b8719bd4f46b09c6b9d082715209c17971e2
drm/msm/rd: fix crash with long process cmdlines

The [v]snprintf() functions return the size that *would have* been
written into the buffer, rather than the size *actually* written.
Which results in us trying to memcpy() past the end of the stack.

What we really want is [v]scnprintf().

Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_rd.c