https://github.com/torvalds/linux
Revision 6a16d7be932a9df1024836ccbb448de73afd3dd0 authored by Roland Dreier on 03 February 2014, 08:35:03 UTC, committed by Nicholas Bellinger on 12 February 2014, 23:11:04 UTC
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 <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
1 parent 2d15025
History
Tip revision: 6a16d7be932a9df1024836ccbb448de73afd3dd0 authored by Roland Dreier on 03 February 2014, 08:35:03 UTC
target: Fix missing length check in spc_emulate_evpd_83()
Tip revision: 6a16d7b
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 93.3 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 266.4 KB
Makefile -rw-r--r-- 49.1 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top