diff options
author | Minchan Kim <minchan@kernel.org> | 2020-10-10 23:16:37 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-10-11 10:31:10 -0700 |
commit | 8b7b2eb131d3476062ffd34358785b44be25172f (patch) | |
tree | 0493b45139ad6b1dd8e4714987d6c9a047c7d37b /net/devres.c | |
parent | bc4fe4cdd602b3bee5eeb49d843bd6b3296cfc86 (diff) | |
download | linux-8b7b2eb131d3476062ffd34358785b44be25172f.tar.bz2 |
mm: validate inode in mapping_set_error()
The swap address_space doesn't have host. Thus, it makes kernel crash once
swap write meets error. Fix it.
Fixes: 735e4ae5ba28 ("vfs: track per-sb writeback errors and report them to syncfs")
Signed-off-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Jeff Layton <jlayton@kernel.org>
Cc: Jan Kara <jack@suse.cz>
Cc: Andres Freund <andres@anarazel.de>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Dave Chinner <david@fromorbit.com>
Cc: David Howells <dhowells@redhat.com>
Cc: <stable@vger.kernel.org>
Link: https://lkml.kernel.org/r/20201010000650.750063-1-minchan@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/devres.c')
0 files changed, 0 insertions, 0 deletions