diff for duplicates of <20121114175512.GJ11515@mwanda> diff --git a/a/1.txt b/N1/1.txt index aba41ee..539db5a 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -23,7 +23,7 @@ On Wed, Nov 14, 2012 at 05:07:37PM +0530, Kumar Amit Mehta wrote: > /* > @@ -2620,7 +2618,8 @@ static int dgrp_tty_ioctl(struct tty_struct *tty, unsigned int cmd, > sizeof(long)); -> if (rc = 0) +> if (rc == 0) > return -EFAULT; > - put_user(C_CLOCAL(tty) ? 1 : 0, (unsigned long __user *) arg); > + if (put_user(C_CLOCAL(tty) ? 1 : 0, (unsigned long __user *) arg)) diff --git a/a/content_digest b/N1/content_digest index 7ccfc86..57f7e83 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\01352893057-27226-1-git-send-email-gmate.amit@gmail.com\0" "From\0Dan Carpenter <dan.carpenter@oracle.com>\0" "Subject\0Re: [PATCH v2] staging: dgrp: dgrp_tty.c: return an -EFAULT if put_user fails\0" - "Date\0Wed, 14 Nov 2012 17:55:12 +0000\0" + "Date\0Wed, 14 Nov 2012 20:55:12 +0300\0" "To\0Kumar Amit Mehta <gmate.amit@gmail.com>\0" "Cc\0alan@lxorguk.ukuu.org.uk" gregkh@linuxfoundation.org @@ -37,7 +37,7 @@ "> /*\n" "> @@ -2620,7 +2618,8 @@ static int dgrp_tty_ioctl(struct tty_struct *tty, unsigned int cmd,\n" "> \t\t\t sizeof(long));\n" - "> \t\tif (rc = 0)\n" + "> \t\tif (rc == 0)\n" "> \t\t\treturn -EFAULT;\n" "> -\t\tput_user(C_CLOCAL(tty) ? 1 : 0, (unsigned long __user *) arg);\n" "> +\t\tif (put_user(C_CLOCAL(tty) ? 1 : 0, (unsigned long __user *) arg))\n" @@ -49,4 +49,4 @@ "regards,\n" dan carpenter -8444932deceb1c1d91b9ab8052ec77bfe6a892cef79258122dce9138ed0cbe04 +9aa4b6d7a01872da69844b0c5df6651e33f7686080b4e211facec83a2dc56093
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.