]> git.baikalelectronics.ru Git - kernel.git/commit
scsi_dh: Verify "dev" is a sdev before accessing it.
authorChandra Seetharaman <sekharan@us.ibm.com>
Thu, 17 Jul 2008 00:35:08 +0000 (17:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 17 Jul 2008 00:54:21 +0000 (17:54 -0700)
commitc04b69d8b80a1361986d263129e8c06c8dbed552
tree9e76151b895d102d1978df3afc58248a2adbf5dd
parentde260a6553b6c49dc70f20758dd46066aac3394b
scsi_dh: Verify "dev" is a sdev before accessing it.

Before accessing the device data structure in hardware handlers,
make sure it is a indeed a sdev device.

Yinghai Lu <yhlu.kernel@gmail.com> found the bug on Jul 16, 2008,
and later tested/verified the following fix.

Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/scsi/device_handler/scsi_dh_emc.c
drivers/scsi/device_handler/scsi_dh_hp_sw.c
drivers/scsi/device_handler/scsi_dh_rdac.c