summaryrefslogtreecommitdiffstats
path: root/mm/mlock.c
diff options
context:
space:
mode:
authorJayachandran C <jchandra@digeo.com>2005-10-27 15:51:13 -0700
committerJames Bottomley <jejb@mulgrave.(none)>2005-10-28 17:41:39 -0500
commit4647722673994787bfa294a163fcb6955b93d417 (patch)
treef355d7d95ca0493ed4181a9517315d9b1db3c418 /mm/mlock.c
parentb5141128027c53b8ca40736d969f75c9a1cdb64b (diff)
downloadop-kernel-dev-4647722673994787bfa294a163fcb6955b93d417.zip
op-kernel-dev-4647722673994787bfa294a163fcb6955b93d417.tar.gz
[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. <c.jayachandran@gmail.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'mm/mlock.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud