Skip to content
Commit e7265adc authored by Ding Xiang's avatar Ding Xiang Committed by Greg Kroah-Hartman
Browse files

ovl: Fix dereferencing possible ERR_PTR()

commit 97f024b9 upstream.

if ovl_encode_real_fh() fails, no memory was allocated
and the error in the error-valued pointer should be returned.

Fixes: 9b6faee0

 ("ovl: check ERR_PTR() return value from ovl_encode_fh()")
Signed-off-by: default avatarDing Xiang <dingxiang@cmss.chinamobile.com>
Cc: <stable@vger.kernel.org> # v4.16+
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2e96c933
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment