From 4797489ce83a5f42d0b38089695a48d4a3d1ee0b Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Tue, 21 Jul 2015 15:42:59 +0100 Subject: [PATCH] x86_64: Fix strnlen_user() to not touch memory after specified maximum Inspired by commit f18c34e483ff ("lib: Fix strnlen_user() to not touch memory after specified maximum") upstream. This version of strnlen_user(), no longer present upstream, has a similar off-by-one error. Signed-off-by: Ben Hutchings Cc: Jan Kara --- Reading git-format-patch failed