diff options
Diffstat (limited to 'common/shmalloc.c')
-rw-r--r-- | common/shmalloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/shmalloc.c b/common/shmalloc.c index c1cebaaf7c..8c66a63eb8 100644 --- a/common/shmalloc.c +++ b/common/shmalloc.c @@ -310,6 +310,8 @@ int shared_mem_acquire(int size, char **dest_ptr) int rv; struct shm_buffer *new_buf; + *dest_ptr = NULL; + if (in_interrupt_context()) return EC_ERROR_INVAL; |