diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2006-03-25 06:07:02 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-25 11:22:51 -0500 |
commit | c41a24ce1fe13638732885859011321af862960a (patch) | |
tree | 6fdf30f1fd5e2c92a10e2eab6c6db485aba340a0 /drivers/isdn/i4l | |
parent | 9a56c213929d83139fd1e12727e1037d71b519f8 (diff) |
[PATCH] ISDN: fix copy_to_user() unused result warning in isdn_ppp
drivers/isdn/i4l/isdn_ppp.c:785: warning: ignoring return value of `copy_to_user', declared with attribute warn_unused_result
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Karsten Keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/isdn/i4l')
-rw-r--r-- | drivers/isdn/i4l/isdn_ppp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/isdn/i4l/isdn_ppp.c b/drivers/isdn/i4l/isdn_ppp.c index 1a19a0f89428..b9fed8a3bcc6 100644 --- a/drivers/isdn/i4l/isdn_ppp.c +++ b/drivers/isdn/i4l/isdn_ppp.c | |||
@@ -782,7 +782,8 @@ isdn_ppp_read(int min, struct file *file, char __user *buf, int count) | |||
782 | is->first = b; | 782 | is->first = b; |
783 | 783 | ||
784 | spin_unlock_irqrestore(&is->buflock, flags); | 784 | spin_unlock_irqrestore(&is->buflock, flags); |
785 | copy_to_user(buf, save_buf, count); | 785 | if (copy_to_user(buf, save_buf, count)) |
786 | count = -EFAULT; | ||
786 | kfree(save_buf); | 787 | kfree(save_buf); |
787 | 788 | ||
788 | return count; | 789 | return count; |