summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorVijayavardhan Vennapusa <vvreddy@codeaurora.org>2018-01-16 14:51:15 +0530
committerVijayavardhan Vennapusa <vvreddy@codeaurora.org>2018-01-16 14:51:15 +0530
commit54e88e72a68c892019c1ee4705ca5402a349c7bf (patch)
tree31740a041fe80a05598707a2cb472aa91308ef02 /lib/mpi/mpi-bit.c
parentde111ce20e214694791b10a106f6910f440fec4c (diff)
dwc3: debugfs: Add check for length before copy data from userspace
Add boundary check before copying data from userspace buffer to dwc3 local buffer. The third parameter passed to copy_from_user() should be minimum of the two values between userpsace buffer size count and (local_buffer size - 1). The last one byte in local_buffer should be reserved for null terminator. Change-Id: I9b2e3db4d5ad6b5f14515cadafa6264f9e8b786c Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions