diff options
author | Steven Hartland <smh@FreeBSD.org> | 2019-03-01 14:39:15 +0000 |
---|---|---|
committer | Steven Hartland <smh@FreeBSD.org> | 2019-03-01 14:39:15 +0000 |
commit | c092a1dbc3e4e572628e0cb02d509a3c5daedc6c (patch) | |
tree | f723441d8fa0ef45867ac74df440806b2f8d5626 /sbin | |
parent | 4974f2b172dca98d98d91fe400e947db8982ed23 (diff) | |
download | src-c092a1dbc3e4e572628e0cb02d509a3c5daedc6c.tar.gz src-c092a1dbc3e4e572628e0cb02d509a3c5daedc6c.zip |
Fix incorrect / unused sector_count for identify requests
Fix incorrect / unused sector_count for identify requests from camcontrol.
Submitted by: Alexey Dokuchaev
Reported by: Alexey Dokuchaev
MFC after: 1 week
Sponsored by: Multiplay
Differential Revision: https://reviews.freebsd.org/D19408
Notes
Notes:
svn path=/head/; revision=344701
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/camcontrol/camcontrol.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c index 6feb2804b874..b9da306854b5 100644 --- a/sbin/camcontrol/camcontrol.c +++ b/sbin/camcontrol/camcontrol.c @@ -2292,7 +2292,7 @@ ata_do_identify(struct cam_device *device, int retry_count, int timeout, /*command*/command, /*features*/0, /*lba*/0, - /*sector_count*/(u_int8_t)sizeof(struct ata_params), + /*sector_count*/0, /*data_ptr*/(u_int8_t *)ptr, /*dxfer_len*/sizeof(struct ata_params), /*timeout*/timeout ? timeout : 30 * 1000, @@ -2312,8 +2312,7 @@ ata_do_identify(struct cam_device *device, int retry_count, int timeout, /*command*/retry_command, /*features*/0, /*lba*/0, - /*sector_count*/(u_int8_t) - sizeof(struct ata_params), + /*sector_count*/0, /*data_ptr*/(u_int8_t *)ptr, /*dxfer_len*/sizeof(struct ata_params), /*timeout*/timeout ? timeout : 30 * 1000, |