Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144931328
D36036.1776945680.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
910 B
Referenced Files
None
Subscribers
None
D36036.1776945680.diff
View Options
Index: sys/cam/cam_periph.c
===================================================================
--- sys/cam/cam_periph.c
+++ sys/cam/cam_periph.c
@@ -770,6 +770,7 @@
if (periph->flags & CAM_PERIPH_NEW_DEV_FOUND) {
union ccb ccb;
+ int arglen;
void *arg;
memset(&ccb, 0, sizeof(ccb));
@@ -779,17 +780,20 @@
xpt_setup_ccb(&ccb.ccb_h, periph->path, CAM_PRIORITY_NORMAL);
xpt_action(&ccb);
arg = &ccb;
+ arglen = sizeof(ccb.cgd);
break;
case AC_PATH_REGISTERED:
xpt_path_inq(&ccb.cpi, periph->path);
arg = &ccb;
+ arglen = sizeof(ccb.cpi);
break;
default:
arg = NULL;
+ arglen = 0;
break;
}
- periph->deferred_callback(NULL, periph->deferred_ac,
- periph->path, arg);
+ xpt_deferred_callback(periph->deferred_callback,
+ periph->deferred_ac, periph->path, arg, arglen);
}
xpt_free_path(periph->path);
free(periph, M_CAMPERIPH);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 23, 12:01 PM (7 h, 43 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28416645
Default Alt Text
D36036.1776945680.diff (910 B)
Attached To
Mode
D36036: cam: Defer callbacks in camperiphfree to a sleepable context
Attached
Detach File
Event Timeline
Log In to Comment