summaryrefslogtreecommitdiff
path: root/drivers/vfio
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2018-02-22 04:08:01 +0300
committerDan Williams <dan.j.williams@intel.com>2018-02-26 23:32:42 +0300
commit230f5a8969d8345fc9bbe3683f068246cf1be4b8 (patch)
treeb6df1cb9d5379fd341c1d179ebae744e96df9ebb /drivers/vfio
parent9d4949b4935831be10534d5432bf611285a572a5 (diff)
downloadlinux-230f5a8969d8345fc9bbe3683f068246cf1be4b8.tar.xz
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: <stable@vger.kernel.org> Reported-by: Gerd Rausch <gerd.rausch@oracle.com> Acked-by: Jane Chu <jane.chu@oracle.com> Reported-by: Haozhong Zhang <haozhong.zhang@intel.com> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/vfio')
0 files changed, 0 insertions, 0 deletions