summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2005-02-21 00:28:36 +0000
committerscottl <scottl@FreeBSD.org>2005-02-21 00:28:36 +0000
commitacbcffbc9533b114c5e41e3b5f2f7ab43a880a83 (patch)
treeddcd11dfc0d13258caae2d4515e5c04889d3d763 /sys/cam
parent08cd16c6a480026bcbfc5351b60c8a43c97bd7a8 (diff)
downloadFreeBSD-src-acbcffbc9533b114c5e41e3b5f2f7ab43a880a83.zip
FreeBSD-src-acbcffbc9533b114c5e41e3b5f2f7ab43a880a83.tar.gz
Reference a pointer correctly when copying to it's location.
Submitted by: Coverity Prevent analysis tool
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/scsi/scsi_all.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/scsi/scsi_all.c b/sys/cam/scsi/scsi_all.c
index e6cdc8d..bade90b 100644
--- a/sys/cam/scsi/scsi_all.c
+++ b/sys/cam/scsi/scsi_all.c
@@ -1971,7 +1971,7 @@ scsi_sense_sbuf(struct cam_device *device, struct ccb_scsiio *csio,
* errors on finicky architectures. We don't
* ensure that the sense data is pointer aligned.
*/
- bcopy(&csio->sense_data, sense,
+ bcopy(&csio->sense_data, &sense,
sizeof(struct scsi_sense_data *));
}
} else {
OpenPOWER on IntegriCloud