From 7134ced4b679ec44f56c7d6cf6f748233530af9b Mon Sep 17 00:00:00 2001 From: OBattler Date: Sat, 13 Oct 2018 00:51:07 +0200 Subject: [PATCH] Fixed a minor pointer bug in scsi_device.c. --- src/scsi/scsi_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scsi/scsi_device.c b/src/scsi/scsi_device.c index 090ed1ed6..781d7e248 100644 --- a/src/scsi/scsi_device.c +++ b/src/scsi/scsi_device.c @@ -8,7 +8,7 @@ * * The generic SCSI device command handler. * - * Version: @(#)scsi_device.c 1.0.20 2018/10/11 + * Version: @(#)scsi_device.c 1.0.21 2018/10/13 * * Authors: Miran Grca, * Fred N. van Kempen, @@ -86,7 +86,7 @@ uint8_t *scsi_device_sense(scsi_device_t *dev) void scsi_device_request_sense(scsi_device_t *dev, uint8_t *buffer, uint8_t alloc_length) { if (dev->request_sense) - dev->request_sense(dev, buffer, alloc_length); + dev->request_sense(dev->p, buffer, alloc_length); else memcpy(buffer, scsi_null_device_sense, alloc_length); }