corrected return code of teles_writebuf()
This commit is contained in:
parent
91580dd520
commit
8214e6d1a2
|
@ -1,6 +1,9 @@
|
|||
/* $Id$
|
||||
*
|
||||
* $Log$
|
||||
* Revision 1.12 1996/06/12 16:15:33 fritz
|
||||
* Extended user-configurable debugging flags.
|
||||
*
|
||||
* Revision 1.11 1996/06/07 12:32:20 fritz
|
||||
* More changes to support suspend/resume.
|
||||
*
|
||||
|
@ -1421,12 +1424,15 @@ teles_writebuf(int id, int chan, const u_char * buf, int count, int user)
|
|||
|
||||
if (!chanp->data_open) {
|
||||
printk(KERN_DEBUG "teles_writebuf: channel not open\n");
|
||||
return -ENOMEM;
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
err = BufPoolGet(&ibh, st->l1.sbufpool, GFP_ATOMIC, st, 21);
|
||||
if (err)
|
||||
return -ENOMEM;
|
||||
/* Must return 0 here, since this is not an error
|
||||
* but a temporary lack of resources.
|
||||
*/
|
||||
return 0;
|
||||
|
||||
ptr = DATAPTR(ibh);
|
||||
if (chanp->lc_b.l2_establish)
|
||||
|
|
Loading…
Reference in New Issue