ovl: check ERR_PTR() return value from ovl_encode_fh()
authorAmir Goldstein <amir73il@gmail.com>
Tue, 30 Jan 2018 11:54:45 +0000 (13:54 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Mon, 5 Feb 2018 08:50:29 +0000 (09:50 +0100)
commit9b6faee074702bbbc207e7027b9416c2d8fea9fe
treec9a15042ac2e9e6ca796c66c4005d6befffe2ef0
parent2aed489d163a6559e07dbc238882c9970ae0f65b
ovl: check ERR_PTR() return value from ovl_encode_fh()

Another fix for an issue reported by 0-day robot.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 8ed5eec9d6c4 ("ovl: encode pure upper file handles")
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/export.c