We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9abf231 commit 99b3b83Copy full SHA for 99b3b83
fs/pstore/zone.c
@@ -761,7 +761,7 @@ static inline int notrace psz_kmsg_write_record(struct psz_context *cxt,
761
/* avoid destroying old data, allocate a new one */
762
len = zone->buffer_size + sizeof(*zone->buffer);
763
zone->oldbuf = zone->buffer;
764
- zone->buffer = kzalloc(len, GFP_KERNEL);
+ zone->buffer = kzalloc(len, GFP_ATOMIC);
765
if (!zone->buffer) {
766
zone->buffer = zone->oldbuf;
767
return -ENOMEM;
0 commit comments