Skip to content
Commit 6b6680c4 authored by Chen Gang's avatar Chen Gang Committed by Benjamin Herrenschmidt
Browse files

powerpc/pseries/hvcserver: Fix strncpy buffer limit in location code



the dest buf len is 80 (HVCS_CLC_LENGTH + 1).
  the src buf len is PAGE_SIZE.
  if src buf string len is more than 80, it will cause issue.

Signed-off-by: default avatarChen Gang <gang.chen@asianux.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 27777890
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment