From: Alan Cox Date: Thu, 12 Dec 2013 02:44:24 +0000 (+0000) Subject: i40e: Fix off by one in i40e_dbg_command_write X-Git-Tag: v3.14-rc1~94^2~456^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5561b6a1b3abaa27f6e52e4f7559c8733ca45e69;p=pandora-kernel.git i40e: Fix off by one in i40e_dbg_command_write We assume that the resulting buffer is zero terminated when we then re-use it. The sscanf is limited to 512 bytes but needs to be 511 to allow for a terminator. One of a set of problems noted by Jackie Chang Signed-off-by: Alan Cox Acked-by: Shannon Nelson Tested-by: Kavindya Deegala Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed