FreeBSD Bugzilla – Attachment 205177 Details for
Bug 238659
ocs_fc: print instance_index value rather than pointer itself in ocs_cam.c
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
The patch file
0001-ocs_fc-print-instance_index-value-rather-than-pointe.patch (text/plain), 1.21 KB, created by
Fuqian
on 2019-06-17 11:29:22 UTC
(
hide
)
Description:
The patch file
Filename:
MIME Type:
Creator:
Fuqian
Created:
2019-06-17 11:29:22 UTC
Size:
1.21 KB
patch
obsolete
>From 32fbc02f58ba81bdc29b41a09f2af1d212b5234b Mon Sep 17 00:00:00 2001 >From: Fuqian Huang <huangfq.daxian@gmail.com> >Date: Mon, 17 Jun 2019 17:00:45 +0800 >Subject: [PATCH] ocs_fc: print instance_index value rather than pointer itself > in ocs_cam.c > >In function ocs_scsi_recv_tmf, print instance_index rather than >the pointer itself to avoid printing out kernel pointer to user space. > >Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com> >--- > sys/dev/ocs_fc/ocs_cam.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/sys/dev/ocs_fc/ocs_cam.c b/sys/dev/ocs_fc/ocs_cam.c >index 7efdc7a07ed..5de22d5f5f2 100644 >--- a/sys/dev/ocs_fc/ocs_cam.c >+++ b/sys/dev/ocs_fc/ocs_cam.c >@@ -679,8 +679,8 @@ int32_t ocs_scsi_recv_tmf(ocs_io_t *tmfio, uint64_t lun, ocs_scsi_tmf_cmd_e cmd, > trsrc = &fcp->targ_rsrc_wildcard; > } > >- device_printf(tmfio->ocs->dev, "%s: io=%p cmd=%#x LU=%lx en=%s\n", >- __func__, tmfio, cmd, (unsigned long)lun, >+ device_printf(tmfio->ocs->dev, "%s: io=%u(index) cmd=%#x LU=%lx en=%s\n", >+ __func__, tmfio->instance_index, cmd, (unsigned long)lun, > trsrc ? (trsrc->enabled ? "T" : "F") : "X"); > if (trsrc) { > inot = (struct ccb_immediate_notify *)STAILQ_FIRST(&trsrc->inot); >-- >2.11.0 >
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 238659
: 205177