https://github.com/torvalds/linux
Revision 2a5f07b5ec098edc69e05fdd2f35d3fbb1235723 authored by Tejun Heo on 01 November 2010, 10:39:19 UTC, committed by Jeff Garzik on 12 November 2010, 22:10:51 UTC
SCSI commands may be issued between __scsi_add_device() and dev->sdev
assignment, so it's unsafe for ata_qc_complete() to dereference
dev->sdev->locked without checking whether it's NULL or not.  Fix it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: stable@kernel.org
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
1 parent a0a6da1
History
Tip revision: 2a5f07b5ec098edc69e05fdd2f35d3fbb1235723 authored by Tejun Heo on 01 November 2010, 10:39:19 UTC
libata: fix NULL sdev dereference race in atapi_qc_complete()
Tip revision: 2a5f07b
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-- 936 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.8 KB
Kbuild -rw-r--r-- 2.4 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 177.8 KB
Makefile -rw-r--r-- 50.9 KB
README -rw-r--r-- 17.1 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top