diff for duplicates of <20181226224142.150866-35-sashal@kernel.org> diff --git a/a/1.txt b/N1/1.txt index 36ca280..6e9251e 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -35,7 +35,7 @@ index 9ad98eaa35bf..26ae83026c52 100644 + struct device_node *match; if (keyb) { -- if (dp == of_find_node_by_path(keyb)) +- if (dp = of_find_node_by_path(keyb)) - return SU_PORT_KBD; + match = of_find_node_by_path(keyb); + @@ -46,19 +46,19 @@ index 9ad98eaa35bf..26ae83026c52 100644 + */ + of_node_put(match); + -+ if (dp == match) { ++ if (dp = match) { + rc = SU_PORT_KBD; + goto out; + } } if (ms) { -- if (dp == of_find_node_by_path(ms)) +- if (dp = of_find_node_by_path(ms)) - return SU_PORT_MS; + match = of_find_node_by_path(ms); + + of_node_put(match); + -+ if (dp == match) { ++ if (dp = match) { + rc = SU_PORT_MS; + goto out; + } diff --git a/a/content_digest b/N1/content_digest index 2c374da..8a15432 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\020181226224142.150866-1-sashal@kernel.org\0" "From\0Sasha Levin <sashal@kernel.org>\0" "Subject\0[PATCH AUTOSEL 4.9 35/35] serial/sunsu: fix refcount leak\0" - "Date\0Wed, 26 Dec 2018 17:41:42 -0500\0" + "Date\0Wed, 26 Dec 2018 22:41:42 +0000\0" "To\0stable@vger.kernel.org" " linux-kernel@vger.kernel.org\0" "Cc\0Yangtao Li <tiny.windzz@gmail.com>" @@ -48,7 +48,7 @@ "+\t\tstruct device_node *match;\n" " \n" " \t\tif (keyb) {\n" - "-\t\t\tif (dp == of_find_node_by_path(keyb))\n" + "-\t\t\tif (dp = of_find_node_by_path(keyb))\n" "-\t\t\t\treturn SU_PORT_KBD;\n" "+\t\t\tmatch = of_find_node_by_path(keyb);\n" "+\n" @@ -59,19 +59,19 @@ "+\t\t\t */\n" "+\t\t\tof_node_put(match);\n" "+\n" - "+\t\t\tif (dp == match) {\n" + "+\t\t\tif (dp = match) {\n" "+\t\t\t\trc = SU_PORT_KBD;\n" "+\t\t\t\tgoto out;\n" "+\t\t\t}\n" " \t\t}\n" " \t\tif (ms) {\n" - "-\t\t\tif (dp == of_find_node_by_path(ms))\n" + "-\t\t\tif (dp = of_find_node_by_path(ms))\n" "-\t\t\t\treturn SU_PORT_MS;\n" "+\t\t\tmatch = of_find_node_by_path(ms);\n" "+\n" "+\t\t\tof_node_put(match);\n" "+\n" - "+\t\t\tif (dp == match) {\n" + "+\t\t\tif (dp = match) {\n" "+\t\t\t\trc = SU_PORT_MS;\n" "+\t\t\t\tgoto out;\n" "+\t\t\t}\n" @@ -88,4 +88,4 @@ "-- \n" 2.19.1 -6ffc2d50985f3dab90b90c2c22dc6a6e9cceb4acdcf0faaf30f188a853309874 +3026a01fefa1315aa55bcb0e0cb1c021d2818cd8f4db755eeecd5526661cd366
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.