drm: solve debug node write string issue [1/1]
authorAo Xu <ao.xu@amlogic.com>
Wed, 23 Oct 2019 11:24:27 +0000 (19:24 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 6 Nov 2019 10:26:29 +0000 (03:26 -0700)
commitfd4b1f532d2f57f452032f63c547413cbae03aca
tree43382839125a86931c6a9a0bcf8faa21eb7ccceb
parentcf6bdda3002dcda53633678c9dfec73ad7464386
drm: solve debug node write string issue [1/1]

PD#SWPL-15143

Problem:
userspace program use the write() syscall to write the node.
when write the strlen() length content, it will fail.

Solution:
use the buf[size] to instead of buf[size-1]

Verify:
U200

Change-Id: I886d9a1cbf3da459476bca76c9a5708ecbc20afe
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
drivers/amlogic/drm/meson_debugfs.c