diff options
Diffstat (limited to 'fs/pstore/platform.c')
| -rw-r--r-- | fs/pstore/platform.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c index 6fbfa8189451..21bf055bdebf 100644 --- a/fs/pstore/platform.c +++ b/fs/pstore/platform.c @@ -36,6 +36,7 @@ #include <linux/hardirq.h> #include <linux/jiffies.h> #include <linux/workqueue.h> +#include <linux/vmalloc.h> #include "internal.h" @@ -580,7 +581,7 @@ void pstore_get_records(int quiet) big_oops_buf_sz); if (unzipped_len > 0) { - kfree(buf); + vfree(buf); buf = big_oops_buf; size = unzipped_len; compressed = false; @@ -594,7 +595,7 @@ void pstore_get_records(int quiet) compressed, (size_t)size, time, psi); if (unzipped_len < 0) { /* Free buffer other than big oops */ - kfree(buf); + vfree(buf); buf = NULL; } else unzipped_len = -1; |
