From: Roland Dreier Date: Mon, 3 Feb 2014 08:35:03 +0000 (-0800) Subject: target: Fix missing length check in spc_emulate_evpd_83() X-Git-Tag: v3.14-rc3~3^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a16d7be932a9df1024836ccbb448de73afd3dd0;p=pandora-kernel.git target: Fix missing length check in spc_emulate_evpd_83() Commit fbfe858fea2a ("target_core_spc: Include target device descriptor in VPD page 83") added a new length variable, but (due to a cut and paste mistake?) just checks scsi_name_len against 256 twice. Fix this to check scsi_target_len for overflow too. Signed-off-by: Roland Dreier Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed