diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-06-21 14:12:23 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-06-21 14:12:35 +0200 |
commit | 4f02706e76eb9f3f011be209ae7428ef3f03e231 (patch) | |
tree | 0e4cde6ee08b1509b82c8c22e6991b7cc9eee597 | |
parent | 8b9600eeba31c3b9e0f723d30a67d7f28616c578 (diff) | |
download | hda-emu-4f02706e76eb9f3f011be209ae7428ef3f03e231.tar.gz |
Fix wrong malloc() call in kmemdup() wrapper
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | include/linux/slab.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/slab.h b/include/linux/slab.h index 1ef3680..b0ce893 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h @@ -29,7 +29,7 @@ static inline size_t strlcpy(char *dest, const char *src, size_t size) static inline void *kmemdup(const void *src, size_t size, int gfp) { - void *dst = malloc(size); + void *dst = kmalloc(size, GFP_KERNEL); if (!dst) return NULL; memcpy(dst, src, size); |