[PATCH] ISDN: correctly handle isdn_writebuf_stub() errors
commitd20d04bc9befbd752092b4aa42bb8254a1af0776
authorJesper Juhl <jesper.juhl@gmail.com>
Fri, 23 Jun 2006 09:05:28 +0000 (23 02:05 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 23 Jun 2006 14:43:04 +0000 (23 07:43 -0700)
treeacf5686c7353aab275451e9033f5aa7693c8dc23
parent94a6735cd67375029c2092e6d46f14b2721e6793
[PATCH] ISDN: correctly handle isdn_writebuf_stub() errors

isdn_writebuf_stub() forgets to detect memory allocation and uaccess errors.
And when that's fixed, if a error happens the caller will just keep on
looping.

So change the caller to detect the error, and to return it.

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Cc: Karsten Keil <kkeil@suse.de>
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/isdn/i4l/isdn_common.c