[PATCH] mtd-ram: correctly free memory on error path in platram_probe()

2020-11-13 Thread Baskov Evgeiny
(linuxtesting.org). Signed-off-by: Baskov Evgeiny --- drivers/mtd/maps/plat-ram.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/maps/plat-ram.c b/drivers/mtd/maps/plat-ram.c index 311742c78155..0bec7c791d17 100644 --- a/drivers/mtd/maps/plat-ram.c

[PATCH] s5p-jpeg: hangle error condition in s5p_jpeg_probe

2020-11-13 Thread Baskov Evgeiny
If an error happens in jpeg_get_drv_data(), i.e. match fails, jpeg->variant field is NULL, so we cannot access it. Consider device probe failed if jpeg->variant is NULL. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Baskov Evgeiny --- drivers/media/platfo