Skip to content

Commit

Permalink
[PATCH] ISDN: fix copy_to_user() unused result warning in isdn_ppp
Browse files Browse the repository at this point in the history
   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>
  • Loading branch information
Jesper Juhl authored and Linus Torvalds committed Mar 25, 2006
1 parent 9a56c21 commit c41a24c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/isdn/i4l/isdn_ppp.c
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,8 @@ isdn_ppp_read(int min, struct file *file, char __user *buf, int count)
is->first = b;

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);

return count;
Expand Down

0 comments on commit c41a24c

Please sign in to comment.