Message ID | ecfc06efe2e3a62da81a1cf6560b6c06b6abb8ff.1495721691.git.jag.raman@oracle.com |
---|---|
State | Changes Requested |
Delegated to: | David Miller |
Headers | show |
diff --git a/arch/sparc/kernel/ldc.c b/arch/sparc/kernel/ldc.c index df845bf..4a27f53 100644 --- a/arch/sparc/kernel/ldc.c +++ b/arch/sparc/kernel/ldc.c @@ -1782,9 +1782,14 @@ static int read_nonraw(struct ldc_channel *lp, void *buf, unsigned int size) lp->rcv_nxt = p->seqid; + /* + * If this is a control-only packet, there is nothing + * else to do but advance the rx queue since the packet + * was already processed above. + */ if (!(p->type & LDC_DATA)) { new = rx_advance(lp, new); - goto no_data; + break; } if (p->stype & (LDC_ACK | LDC_NACK)) { err = data_ack_nack(lp, p);