aboutsummaryrefslogtreecommitdiff
path: root/security/safesetid
diff options
context:
space:
mode:
authorMichael Walle2023-03-08 09:20:20 +0100
committerGreg Kroah-Hartman2023-05-11 23:03:40 +0900
commitf1b4affca1e13706ca2eb075bf6775421236d7d1 (patch)
tree3a130d4fe2e6ab91718f3773575892494cd08799 /security/safesetid
parent26358f330405af09c34142600299bf5963e0b72a (diff)
mtd: core: fix error path for nvmem provider
commit e0489f6e221f5ddee6cb3bd51b992b790c5fa4b9 upstream. If mtd_otp_nvmem_add() fails, the partitions won't be removed because there is simply no call to del_mtd_partitions(). Unfortunately, add_mtd_partitions() will print all partitions to the kernel console. If mtd_otp_nvmem_add() returns -EPROBE_DEFER this would print the partitions multiple times to the kernel console. Instead move mtd_otp_nvmem_add() to the beginning of the function. Fixes: 4b361cfa8624 ("mtd: core: add OTP nvmem provider support") Cc: stable@vger.kernel.org Signed-off-by: Michael Walle <michael@walle.cc> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20230308082021.870459-3-michael@walle.cc Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'security/safesetid')
0 files changed, 0 insertions, 0 deletions