|
@@ -392,7 +392,7 @@ read_dma(struct tiger_ch *bc, u32 idx, int cnt)
|
|
}
|
|
}
|
|
stat = bchannel_get_rxbuf(&bc->bch, cnt);
|
|
stat = bchannel_get_rxbuf(&bc->bch, cnt);
|
|
/* only transparent use the count here, HDLC overun is detected later */
|
|
/* only transparent use the count here, HDLC overun is detected later */
|
|
- if (stat == ENOMEM) {
|
|
|
|
|
|
+ if (stat == -ENOMEM) {
|
|
pr_warning("%s.B%d: No memory for %d bytes\n",
|
|
pr_warning("%s.B%d: No memory for %d bytes\n",
|
|
card->name, bc->bch.nr, cnt);
|
|
card->name, bc->bch.nr, cnt);
|
|
return;
|
|
return;
|