diff options
author | scottl <scottl@FreeBSD.org> | 2005-02-21 00:28:36 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2005-02-21 00:28:36 +0000 |
commit | acbcffbc9533b114c5e41e3b5f2f7ab43a880a83 (patch) | |
tree | ddcd11dfc0d13258caae2d4515e5c04889d3d763 /sys/cam | |
parent | 08cd16c6a480026bcbfc5351b60c8a43c97bd7a8 (diff) | |
download | FreeBSD-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.c | 2 |
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 { |