提交 c41a24ce 编写于 作者: J Jesper Juhl 提交者: Linus Torvalds

[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: NJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: NKarsten Keil <kkeil@suse.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 9a56c213
...@@ -782,7 +782,8 @@ isdn_ppp_read(int min, struct file *file, char __user *buf, int count) ...@@ -782,7 +782,8 @@ isdn_ppp_read(int min, struct file *file, char __user *buf, int count)
is->first = b; is->first = b;
spin_unlock_irqrestore(&is->buflock, flags); spin_unlock_irqrestore(&is->buflock, flags);
copy_to_user(buf, save_buf, count); if (copy_to_user(buf, save_buf, count))
count = -EFAULT;
kfree(save_buf); kfree(save_buf);
return count; return count;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册