forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commit8b7b2eb
mm: validate inode in mapping_set_error()
The swap address_space doesn't have host. Thus, it makes kernel crash onceswap write meets error. Fix it.Fixes:735e4ae ("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.orgSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parentbc4fe4c commit8b7b2eb
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
0 commit comments
Comments
(0)