diff for duplicates of <20181226225501.151365-21-sashal@kernel.org> diff --git a/a/1.txt b/N1/1.txt index d924d97..b107b65 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -35,7 +35,7 @@ index e124d2e88996..d6c9d5b458a0 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 e124d2e88996..d6c9d5b458a0 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 f99cddb..0f37575 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\020181226225501.151365-1-sashal@kernel.org\0" "From\0Sasha Levin <sashal@kernel.org>\0" "Subject\0[PATCH AUTOSEL 4.4 21/21] serial/sunsu: fix refcount leak\0" - "Date\0Wed, 26 Dec 2018 17:54:59 -0500\0" + "Date\0Wed, 26 Dec 2018 22:54:59 +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 -69f759dccd7907df8aa10988d90bc5e81d5a71c9806f406afb612c6b5fe69681 +71a8376b2824664662776d7b79cf87d9a8361db2c90cb444cf312ea44beaf883
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.