From: Chandra Seetharaman Date: Thu, 17 Jul 2008 00:35:08 +0000 (-0700) Subject: scsi_dh: Verify "dev" is a sdev before accessing it. X-Git-Tag: v2.6.27-rc1~1045 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33af79d12e0fa25545d49e86afc67ea8ad5f2f40;p=pandora-kernel.git 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 found the bug on Jul 16, 2008, and later tested/verified the following fix. Signed-off-by: Chandra Seetharaman Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed