Reference a pointer correctly when copying to it's location.

Submitted by: Coverity Prevent analysis tool
This commit is contained in:
scottl 2005-02-21 00:28:36 +00:00
parent 86862c1cfa
commit 3c8e6b027c

View File

@ -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 {