Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177639761
D26843.1794920412.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
746 B
Referenced Files
None
Subscribers
None
D26843.1794920412.diff
View Options
Index: head/sys/dev/firewire/sbp.c
===================================================================
--- head/sys/dev/firewire/sbp.c
+++ head/sys/dev/firewire/sbp.c
@@ -987,7 +987,7 @@
sdev = sbp_next_dev(target, sdev->lun_id + 1);
if (sdev == NULL) {
SBP_UNLOCK(sbp);
- free(ccb, M_SBP);
+ xpt_free_ccb(ccb);
return;
}
/* reuse ccb */
@@ -1019,9 +1019,9 @@
device_printf(sdev->target->sbp->fd.dev,
"%s:%s\n", __func__, sdev->bustgtlun);
END_DEBUG
- ccb = malloc(sizeof(union ccb), M_SBP, M_NOWAIT | M_ZERO);
+ ccb = xpt_alloc_ccb_nowait();
if (ccb == NULL) {
- printf("sbp_cam_scan_target: malloc failed\n");
+ printf("sbp_cam_scan_target: xpt_alloc_ccb_nowait() failed\n");
return;
}
SBP_UNLOCK(target->sbp);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 17, 1:00 PM (21 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41800157
Default Alt Text
D26843.1794920412.diff (746 B)
Attached To
Mode
D26843: sbp(4): use xpt_alloc_ccb/xpt_free_ccb instead of malloc/free
Attached
Detach File
Event Timeline