summaryrefslogtreecommitdiff
path: root/crypto/acompress.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/acompress.c')
-rw-r--r--crypto/acompress.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/acompress.c b/crypto/acompress.c
index 70bc1fd044e4..5807b87bb508 100644
--- a/crypto/acompress.c
+++ b/crypto/acompress.c
@@ -483,6 +483,9 @@ void crypto_acomp_free_streams(struct crypto_acomp_streams *s)
void (*free_ctx)(void *);
int i;
+ if (!streams)
+ return;
+
cancel_work_sync(&s->stream_work);
free_ctx = s->free_ctx;