diff options
-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; |