Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131845639
D26842.id79884.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
681 B
Referenced Files
None
Subscribers
None
D26842.id79884.diff
View Options
Index: head/sys/dev/hptmv/entry.c
===================================================================
--- head/sys/dev/hptmv/entry.c
+++ head/sys/dev/hptmv/entry.c
@@ -2008,9 +2008,8 @@
}
- if((ccb = (union ccb *)malloc(sizeof(*ccb), M_DEVBUF, M_WAITOK)) != (union ccb*)NULL)
+ if ((ccb = xpt_alloc_ccb()) != NULL)
{
- bzero(ccb, sizeof(*ccb));
ccb->ccb_h.pinfo.priority = 1;
ccb->ccb_h.pinfo.index = CAM_UNQUEUED_INDEX;
}
@@ -2065,7 +2064,7 @@
ccb->csa.callback = hpt_async;
ccb->csa.callback_arg = hpt_vsim;
xpt_action((union ccb *)ccb);
- free(ccb, M_DEVBUF);
+ xpt_free_ccb(ccb);
if (device_get_unit(dev) == 0) {
/* Start the work thread. XXX */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 12, 4:03 PM (4 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23629674
Default Alt Text
D26842.id79884.diff (681 B)
Attached To
Mode
D26842: hptmv(4): use xpt_alloc_ccb/xpt_free_ccb instead of malloc/free.
Attached
Detach File
Event Timeline
Log In to Comment