aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2009-02-21 11:04:45 +0900
committerGreg Kroah-Hartman <gregkh@suse.de>2009-03-16 17:32:02 -0700
commit8ad59c65f7e043b34f8bc83a1e5f8cb6796c22be (patch)
tree4ae3272f78f0149621dd88c5430f52b8e911c488 /drivers/staging
parentcd61ccf550e6ca3e55ba55809d3f51c7e8ef015b (diff)
SCSI: sd: revive sd_index_lock
commit 4034cc68157bfa0b6622efe368488d3d3e20f4e6 upstream. Commit f27bac2761cab5a2e212dea602d22457a9aa6943 which converted sd to use ida instead of idr incorrectly removed sd_index_lock around id allocation and free. idr/ida do have internal locks but they protect their free object lists not the allocation itself. The caller is responsible for that. This missing synchronization led to the same id being assigned to multiple devices leading to oops. Reported and tracked down by Stuart Hayes of Dell. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
0 files changed, 0 insertions, 0 deletions