mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
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:
parent
f7ddb2d441
commit
515f06ebc0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=93501
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user