diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2017-02-27 15:16:33 -0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-02-27 15:16:32 -0800 |
| commit | f32c41e6a575959e25badcb2c6e87dadf11fa910 (patch) | |
| tree | f4af3dc8314ea7b6b088b13402e0024871b2673d | |
| parent | 52e55af28b810553c8440cc21038e2f52775faaa (diff) | |
| parent | e5f964228dc62f6dfed96db010340c6f32008af7 (diff) | |
Merge "msm: kgsl: Use init_utsname() instead of ustname() for kernel build info."
| -rw-r--r-- | drivers/gpu/msm/kgsl_snapshot.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/msm/kgsl_snapshot.c b/drivers/gpu/msm/kgsl_snapshot.c index 1caa673db6ff..7de43dd27ffe 100644 --- a/drivers/gpu/msm/kgsl_snapshot.c +++ b/drivers/gpu/msm/kgsl_snapshot.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. +/* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -156,8 +156,10 @@ static size_t snapshot_os(struct kgsl_device *device, header->osid = KGSL_SNAPSHOT_OS_LINUX_V3; /* Get the kernel build information */ - strlcpy(header->release, utsname()->release, sizeof(header->release)); - strlcpy(header->version, utsname()->version, sizeof(header->version)); + strlcpy(header->release, init_utsname()->release, + sizeof(header->release)); + strlcpy(header->version, init_utsname()->version, + sizeof(header->version)); /* Get the Unix time for the timestamp */ header->seconds = get_seconds(); |
