Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

of: overlay: Avoid spurious error messages in of_overlay_remove()

Make of_overlay_remove() tolerate ovcs_id being 0 without logging an error.

Suggested-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://patch.msgid.link/f756e04e8bc239b33a0428c2dd055f202e214f0b.1761335298.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

authored by

Christophe JAILLET and committed by
Rob Herring (Arm)
b012c2ac 527bb3a7

+3
+3
drivers/of/overlay.c
··· 1190 1190 struct overlay_changeset *ovcs; 1191 1191 int ret, ret_apply, ret_tmp; 1192 1192 1193 + if (*ovcs_id == 0) 1194 + return 0; 1195 + 1193 1196 if (devicetree_corrupt()) { 1194 1197 pr_err("suspect devicetree state, refuse to remove overlay\n"); 1195 1198 ret = -EBUSY;