Message ID | 1416222981-23638-1-git-send-email-luis.henriques@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/fs/buffer.c b/fs/buffer.c index 19a78d074e0d..4752094053f9 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -2328,6 +2328,11 @@ static int cont_expand_zero(struct file *file, struct address_space *mapping, err = 0; balance_dirty_pages_ratelimited(mapping); + + if (unlikely(fatal_signal_pending(current))) { + err = -EINTR; + goto out; + } } /* page covers the boundary, find the boundary offset */