4.9-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Greg Kroah-Hartman <gre...@linuxfoundation.org>

This reverts commit e2d054998b151e85b6305aa72264f67097bd78e9 which is
commit 1d6b3c9ba756a5134fd7ad1959acac776d17404b upstream.

It breaks the build, so obviously none of us actually tested it :(

Reported-by: Maxime Hadjinlian <maxime.hadjinl...@gmail.com>
Reported-by: Akemi Yagi <tora...@elrepo.org>
Cc: Namhyung Kim <namhy...@kernel.org>
Cc: Jiri Olsa <jo...@kernel.org>
Cc: Adrian Hunter <adrian.hun...@intel.com>
Cc: David Ahern <dsah...@gmail.com>
Cc: Peter Zijlstra <a.p.zijls...@chello.nl>
Cc: Wang Nan <wangn...@huawei.com>
Cc: kernel-t...@lge.com
Cc: Arnaldo Carvalho de Melo <a...@redhat.com>
Cc: Sasha Levin <alexander.le...@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gre...@linuxfoundation.org>
---
 tools/perf/util/dso.c |   16 ----------------
 1 file changed, 16 deletions(-)

--- a/tools/perf/util/dso.c
+++ b/tools/perf/util/dso.c
@@ -366,23 +366,7 @@ static int __open_dso(struct dso *dso, s
        if (!is_regular_file(name))
                return -EINVAL;
 
-       if (dso__needs_decompress(dso)) {
-               char newpath[KMOD_DECOMP_LEN];
-               size_t len = sizeof(newpath);
-
-               if (dso__decompress_kmodule_path(dso, name, newpath, len) < 0) {
-                       free(name);
-                       return -dso->load_errno;
-               }
-
-               strcpy(name, newpath);
-       }
-
        fd = do_open(name);
-
-       if (dso__needs_decompress(dso))
-               unlink(name);
-
        free(name);
        return fd;
 }


Reply via email to