Commit 345b19c7 authored by Jonathan Jenkins's avatar Jonathan Jenkins

fix mod logic in sched to allow 0-size msg

parent 4b42678e
......@@ -331,7 +331,8 @@ void fcfs_next_rc(
q->req = rc->req;
q->sched_params = rc->sched_params;
q->rem = q->req.msg_size % q->req.packet_size;
if (q->rem == 0){ // processed exactly a packet's worth of data
// processed exactly a packet's worth of data
if (q->rem == 0 && q->req.msg_size != 0){
q->rem = q->req.packet_size;
}
const void * e_dat = rc_event_save;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment