Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
BangBMC Firmware
hiomapd
Commits
fff39034
Commit
fff39034
authored
5 years ago
by
Jonathan Currier
Browse files
Options
Download
Email Patches
Plain Diff
log failures
parent
6df591c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
control_unix.c
control_unix.c
+7
-3
No files found.
control_unix.c
View file @
fff39034
...
...
@@ -116,6 +116,7 @@ int transport_unix_dispatch(struct mbox_context *context)
MSG_DBG
(
"epoll_wait(): %d(%m)
\n
"
,
count
);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
int
rc
;
ectx
=
evps
[
i
].
data
.
ptr
;
MSG_DBG
(
"fd[%d].epoll_event.event: %08x
\n
"
,
ectx
->
fd
,
evps
[
i
].
events
);
/* NOTE: ectx might be freed after this call
...
...
@@ -125,7 +126,7 @@ int transport_unix_dispatch(struct mbox_context *context)
* however it probably doesn't matter because we are not a
* high performance server (the though of this needing high
* throughput is horrifying)*/
ectx
->
ops
->
work
(
context
,
ectx
,
evps
+
i
);
rc
=
ectx
->
ops
->
work
(
context
,
ectx
,
evps
+
i
);
ectx
=
NULL
;
}
}
...
...
@@ -204,7 +205,10 @@ int conn_fd_work(struct mbox_context *context, struct ep_ctx* ectx, struct epoll
if
((
readlen
>=
4
)
&&
(
req
.
request
<
husx_api_limit
)
&&
(
husc_dispatch_lut
[
req
.
request
].
hdlr
))
{
husc_dispatch_lut
[
req
.
request
].
hdlr
(
context
,
ectx
,
&
req
);
int
rc
;
rc
=
husc_dispatch_lut
[
req
.
request
].
hdlr
(
context
,
ectx
,
&
req
);
if
(
rc
)
MSG_DBG
(
"WARNING: cmd %x return %x
\n
"
,
req
.
request
,
rc
);
return
0
;
}
return
-
1
;
...
...
@@ -364,7 +368,7 @@ static int hust_markdirty_hdlr(struct mbox_context *context, struct ep_ctx *ectx
struct
protocol_mark_dirty
io
;
int
rc
;
io
.
req
.
v2
.
offset
=
req
->
args
[
0
];
io
.
req
.
v2
.
size
=
req
->
args
[
0
];
io
.
req
.
v2
.
size
=
req
->
args
[
1
];
if
((
rc
=
context
->
protocol
->
mark_dirty
(
context
,
&
io
))
<
0
)
return
rc
;
memset
(
req
,
0
,
sizeof
(
*
req
));
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment