diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-20 06:27:18 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-20 06:27:18 -0400 |
commit | 4958134df54c2c84e9c22ea042761d439164d26e (patch) | |
tree | 503177afab11f7d25b12a84ce25b481d305c51ba /scripts/kconfig/util.c | |
parent | c4f528795d1add8b63652673f7262729f679c6c1 (diff) | |
parent | c698ca5278934c0ae32297a8725ced2e27585d7f (diff) |
Merge 4.16-rc6 into tty-next
We want the serial/tty fixes in here as well.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/kconfig/util.c')
-rw-r--r-- | scripts/kconfig/util.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/kconfig/util.c b/scripts/kconfig/util.c index b98a79e30e04..c6f6e21b809f 100644 --- a/scripts/kconfig/util.c +++ b/scripts/kconfig/util.c | |||
@@ -154,3 +154,14 @@ void *xrealloc(void *p, size_t size) | |||
154 | fprintf(stderr, "Out of memory.\n"); | 154 | fprintf(stderr, "Out of memory.\n"); |
155 | exit(1); | 155 | exit(1); |
156 | } | 156 | } |
157 | |||
158 | char *xstrdup(const char *s) | ||
159 | { | ||
160 | char *p; | ||
161 | |||
162 | p = strdup(s); | ||
163 | if (p) | ||
164 | return p; | ||
165 | fprintf(stderr, "Out of memory.\n"); | ||
166 | exit(1); | ||
167 | } | ||