From: Jayachandran C Date: Thu, 27 Oct 2005 22:51:13 +0000 (-0700) Subject: [SCSI] Fix issue reported by coverity in drivers/scsi/scsi_ioctl.c X-Git-Tag: v2.6.15-rc1~723^2~2^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4647722673994787bfa294a163fcb6955b93d417;p=pandora-kernel.git [SCSI] Fix issue reported by coverity in drivers/scsi/scsi_ioctl.c This patch attempts to fix an issue found in drivers/scsi/scsi_ioctl.c by Coverity. Error reported: CID: 3437 Checker: FORWARD_NULL (help) File: /export2/p4-coverity/mc2/linux26/drivers/scsi/scsi_ioctl.c Function: scsi_ioctl_send_command Description: Variable "buf" tracked as NULL was passed to a function that dereferences it. Patch description: buf can be NULL if inlen and outlen are both 0. This patch adds check if the length is non-zero before calling copy from/to user. Signed-off-by: Jayachandran C. Signed-off-by: James Bottomley --- Reading git-diff-tree failed