diff options
| author | Dan Williams <[email protected]> | 2018-02-22 01:08:01 +0000 |
|---|---|---|
| committer | Dan Williams <[email protected]> | 2018-02-26 20:32:42 +0000 |
| commit | 230f5a8969d8345fc9bbe3683f068246cf1be4b8 (patch) | |
| tree | b6df1cb9d5379fd341c1d179ebae744e96df9ebb /lib/debugobjects.c | |
| parent | dax: ->direct_access does not sleep anymore (diff) | |
| download | kernel-230f5a8969d8345fc9bbe3683f068246cf1be4b8.tar.gz kernel-230f5a8969d8345fc9bbe3683f068246cf1be4b8.zip | |
dax: fix vma_is_fsdax() helper
Gerd reports that ->i_mode may contain other bits besides S_IFCHR. Use
S_ISCHR() instead. Otherwise, get_user_pages_longterm() may fail on
device-dax instances when those are meant to be explicitly allowed.
Fixes: 2bb6d2837083 ("mm: introduce get_user_pages_longterm")
Cc: <[email protected]>
Reported-by: Gerd Rausch <[email protected]>
Acked-by: Jane Chu <[email protected]>
Reported-by: Haozhong Zhang <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
