diff for duplicates of <20110107051227.GD1717@bicker> diff --git a/a/1.txt b/N1/1.txt index ced9949..13debeb 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -8,16 +8,16 @@ index d2d8543..e01cacb 100644 --- a/drivers/gpu/vga/vga_switcheroo.c +++ b/drivers/gpu/vga/vga_switcheroo.c @@ -346,11 +346,11 @@ vga_switcheroo_debugfs_write(struct file *filp, const char __user *ubuf, - if (strncmp(usercmd, "DIS", 3) = 0) + if (strncmp(usercmd, "DIS", 3) == 0) client_id = VGA_SWITCHEROO_DIS; -- if (strncmp(usercmd, "MIGD", 3) = 0) { -+ if (strncmp(usercmd, "MIGD", 4) = 0) { +- if (strncmp(usercmd, "MIGD", 3) == 0) { ++ if (strncmp(usercmd, "MIGD", 4) == 0) { just_mux = true; client_id = VGA_SWITCHEROO_IGD; } -- if (strncmp(usercmd, "MDIS", 3) = 0) { -+ if (strncmp(usercmd, "MDIS", 4) = 0) { +- if (strncmp(usercmd, "MDIS", 3) == 0) { ++ if (strncmp(usercmd, "MDIS", 4) == 0) { just_mux = true; client_id = VGA_SWITCHEROO_DIS; } diff --git a/a/content_digest b/N1/content_digest index 5a4fa9a..9669bda 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,6 @@ "From\0Dan Carpenter <error27@gmail.com>\0" "Subject\0[patch] vga_switcheroo: comparing too few characters in strncmp()\0" - "Date\0Fri, 07 Jan 2011 05:12:27 +0000\0" + "Date\0Fri, 7 Jan 2011 08:12:27 +0300\0" "To\0Dave Airlie <airlied@redhat.com>\0" "Cc\0Jiri Slaby <jslaby@suse.cz>" linux-kernel@vger.kernel.org @@ -17,18 +17,18 @@ "--- a/drivers/gpu/vga/vga_switcheroo.c\n" "+++ b/drivers/gpu/vga/vga_switcheroo.c\n" "@@ -346,11 +346,11 @@ vga_switcheroo_debugfs_write(struct file *filp, const char __user *ubuf,\n" - " \tif (strncmp(usercmd, \"DIS\", 3) = 0)\n" + " \tif (strncmp(usercmd, \"DIS\", 3) == 0)\n" " \t\tclient_id = VGA_SWITCHEROO_DIS;\n" " \n" - "-\tif (strncmp(usercmd, \"MIGD\", 3) = 0) {\n" - "+\tif (strncmp(usercmd, \"MIGD\", 4) = 0) {\n" + "-\tif (strncmp(usercmd, \"MIGD\", 3) == 0) {\n" + "+\tif (strncmp(usercmd, \"MIGD\", 4) == 0) {\n" " \t\tjust_mux = true;\n" " \t\tclient_id = VGA_SWITCHEROO_IGD;\n" " \t}\n" - "-\tif (strncmp(usercmd, \"MDIS\", 3) = 0) {\n" - "+\tif (strncmp(usercmd, \"MDIS\", 4) = 0) {\n" + "-\tif (strncmp(usercmd, \"MDIS\", 3) == 0) {\n" + "+\tif (strncmp(usercmd, \"MDIS\", 4) == 0) {\n" " \t\tjust_mux = true;\n" " \t\tclient_id = VGA_SWITCHEROO_DIS;\n" " \t}" -3fcabe0aefef4efbc689e4d587852662b819ccdb818bb9367a2c7dcacd972c9c +a2a601ea51fee11b2b7097d12376c2bc7ba93887bb5790b327df4f3506be4edd
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.