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

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

From: Greg Kroah-Hartman <[email protected]>

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 <[email protected]>
Reported-by: Akemi Yagi <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Wang Nan <[email protected]>
Cc: [email protected]
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Sasha Levin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
 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