diff for duplicates of <20181226223839.150262-59-sashal@kernel.org> diff --git a/a/1.txt b/N1/1.txt index f4f623a..c6ad5a0 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -35,7 +35,7 @@ index 95d34d7565c9..1cf78cec7461 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 95d34d7565c9..1cf78cec7461 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 a0e6249..0e43574 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\020181226223839.150262-1-sashal@kernel.org\0" "From\0Sasha Levin <sashal@kernel.org>\0" "Subject\0[PATCH AUTOSEL 4.14 59/59] serial/sunsu: fix refcount leak\0" - "Date\0Wed, 26 Dec 2018 17:38:39 -0500\0" + "Date\0Wed, 26 Dec 2018 22:38:39 +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 -175739df425aac4499565c824e273c26706354c856901fbb0e48456c7c67b52c +aaae2db225bb41aa4f6705a3f76f1a110541be7e45ad378e766c2ff1f23be79a
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.