Re: [PATCH] mtd: ubi: Put MTD device after it is not used

2025-05-05 Thread Heiko Schocher
Hello Alexander, On 11.04.25 06:21, Heiko Schocher wrote: Hello Alexander, On 10.04.25 13:37, Alexander Vickberg wrote: The MTD device reference is dropped via put_mtd_device, however its field ->index is read and passed to ubi_msg. To fix this, the patch moves the reference dropping after cal

Re: [PATCH] mtd: ubi: Put MTD device after it is not used

2025-04-10 Thread Heiko Schocher
Hello Alexander, On 10.04.25 13:37, Alexander Vickberg wrote: The MTD device reference is dropped via put_mtd_device, however its field ->index is read and passed to ubi_msg. To fix this, the patch moves the reference dropping after calling ubi_msg. Signed-off-by: Pan Bian Reviewed-by: Boris B

[PATCH] mtd: ubi: Put MTD device after it is not used

2025-04-10 Thread Alexander Vickberg
The MTD device reference is dropped via put_mtd_device, however its field ->index is read and passed to ubi_msg. To fix this, the patch moves the reference dropping after calling ubi_msg. Signed-off-by: Pan Bian Reviewed-by: Boris Brezillon Signed-off-by: Richard Weinberger Upstream Linux comm