Fix a bzero length calculation. sizeof(struct ccb_getdev) should have been

sizeof(struct ccb_getdevstats).

MFC after:	3 days
This commit is contained in:
Kenneth D. Merry 2002-04-01 03:58:51 +00:00
parent f7ddb2d441
commit 515f06ebc0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=93501

View File

@ -2173,7 +2173,7 @@ tagcontrol(struct cam_device *device, int argc, char **argv,
}
bzero(&(&ccb->ccb_h)[1],
sizeof(struct ccb_getdev) - sizeof(struct ccb_hdr));
sizeof(struct ccb_getdevstats) - sizeof(struct ccb_hdr));
ccb->ccb_h.func_code = XPT_GDEV_STATS;