FreeBSD Bugzilla – Attachment 156014 Details for
Bug 199671
[patch] memory leak in cam scsi
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix avoiding double free
sys-cam-CID1007770.diff (text/plain), 811 bytes, created by
Pedro F. Giffuni
on 2015-04-26 18:25:23 UTC
(
hide
)
Description:
Fix avoiding double free
Filename:
MIME Type:
Creator:
Pedro F. Giffuni
Created:
2015-04-26 18:25:23 UTC
Size:
811 bytes
patch
obsolete
>Index: sys/cam/scsi/scsi_xpt.c >=================================================================== >--- sys/cam/scsi/scsi_xpt.c (revision 282035) >+++ sys/cam/scsi/scsi_xpt.c (working copy) >@@ -2008,6 +2008,7 @@ > " with status %#x, bus scan halted\n", > status); > free(scan_info, M_CAMXPT); >+ scan_info = NULL; > request_ccb->ccb_h.status = status; > xpt_free_ccb(work_ccb); > xpt_done(request_ccb); >@@ -2017,6 +2018,7 @@ > if (work_ccb == NULL) { > xpt_free_ccb((union ccb *)scan_info->cpi); > free(scan_info, M_CAMXPT); >+ scan_info = NULL; > xpt_free_path(path); > request_ccb->ccb_h.status = CAM_RESRC_UNAVAIL; > xpt_done(request_ccb); >@@ -2032,6 +2034,7 @@ > xpt_action(work_ccb); > } > >+ free(scan_info, M_CAMXPT); > mtx_lock(mtx); > break; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 199671
:
155951
| 156014