of: overlay: do not break notify on NOTIFY_{OK|STOP}
authorNuno Sá <nuno.sa@analog.com>
Wed, 20 Apr 2022 13:02:05 +0000 (15:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:22:50 +0000 (10:22 +0200)
commit6fbd040cae20db81725a7c0d4551db8e46689aa6
tree039a567bb0d046f3987eecc981813f3045b01658
parent9b2aa765fb29ddcb67ea760fb8868ef1f8fafefa
of: overlay: do not break notify on NOTIFY_{OK|STOP}

[ Upstream commit 5f756a2eaa4436d7d3dc1e040147f5e992ae34b5 ]

We should not break overlay notifications on NOTIFY_{OK|STOP}
otherwise we might break on the first fragment. We should only stop
notifications if a *real* errno is returned by one of the listeners.

Fixes: a1d19bd4cf1fe ("of: overlay: pr_err from return NOTIFY_OK to overlay apply/remove")
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220420130205.89435-1-nuno.sa@analog.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/of/overlay.c