Page MenuHomeFreeBSD

D26843.1794920412.diff
No OneTemporary

Authored By
Unknown
Size
746 B
Referenced Files
None
Subscribers
None

D26843.1794920412.diff

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

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)

Event Timeline