Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Mar 2019 14:39:15 +0000 (UTC)
From:      Steven Hartland <smh@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r344701 - head/sbin/camcontrol
Message-ID:  <201903011439.x21EdFlH055596@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: smh
Date: Fri Mar  1 14:39:15 2019
New Revision: 344701
URL: https://svnweb.freebsd.org/changeset/base/344701

Log:
  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

Modified:
  head/sbin/camcontrol/camcontrol.c

Modified: head/sbin/camcontrol/camcontrol.c
==============================================================================
--- head/sbin/camcontrol/camcontrol.c	Fri Mar  1 14:33:20 2019	(r344700)
+++ head/sbin/camcontrol/camcontrol.c	Fri Mar  1 14:39:15 2019	(r344701)
@@ -2292,7 +2292,7 @@ ata_do_identify(struct cam_device *device, int retry_c
 				 /*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_c
 					 /*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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903011439.x21EdFlH055596>