diff for duplicates of <20181226223557.149329-96-sashal@kernel.org> diff --git a/a/1.txt b/N1/1.txt index 6633900..84edb0d 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -35,7 +35,7 @@ index 6cf3e9b0728f..3e77475668c0 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 6cf3e9b0728f..3e77475668c0 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 72e451e..93799d5 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\020181226223557.149329-1-sashal@kernel.org\0" "From\0Sasha Levin <sashal@kernel.org>\0" "Subject\0[PATCH AUTOSEL 4.19 96/97] serial/sunsu: fix refcount leak\0" - "Date\0Wed, 26 Dec 2018 17:35:56 -0500\0" + "Date\0Wed, 26 Dec 2018 22:35:56 +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 -0cacf608351b71a1d3cd7a963df86917a6d33f09e346c90acce40a8950c698d9 +c1ca87b23e15fe5894bf10f37e900565903a1f86f80ace9e342dcb43649e49c7
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.