ovl: fix NULL pointer dereference in copy up warning
authorChristoph Fritz <chf.fritz@googlemail.com>
Wed, 12 Jan 2022 18:33:21 +0000 (19:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Feb 2022 11:38:59 +0000 (12:38 +0100)
commite6b678c1a3673de6a5d2f4e22bb725a086a0701a
tree5e05bed3f3ab7a22d83a2c77b480366176a8dd2a
parentc3d81231ab84db96fe80f78e9432c285da1ab86c
ovl: fix NULL pointer dereference in copy up warning

commit 4ee7e4a6c9b298da44029ed9ec8ed23ae49cc209 upstream.

This patch is fixing a NULL pointer dereference to get a recently
introduced warning message working.

Fixes: 5b0a414d06c3 ("ovl: fix filattr copy-up failure")
Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
Cc: <stable@vger.kernel.org> # v5.15
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/overlayfs/copy_up.c