]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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>
Tue, 14 Jun 2022 14:59:20 +0000 (16:59 +0200)
commit2e9df1b09f72d17d722224d6248a446542a0f75c
treed29f94ed4e4f2efab0d9649b62220f90925d4f99
parent72632015277b56d5f8fd666ccd24cb0ed7ef1d72
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