From: zsq Date: Thu, 21 Jun 2012 02:59:25 +0000 (+0800) Subject: fix rga prescale mode mem leak X-Git-Tag: firefly_0821_release~9075 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9d91cc184699f2eb69df8906091f236b9c14cfaa;p=firefly-linux-kernel-4.4.55.git fix rga prescale mode mem leak --- diff --git a/drivers/video/rockchip/rga/rga_drv.c b/drivers/video/rockchip/rga/rga_drv.c index a6bbd9882ba1..0474d2da293f 100755 --- a/drivers/video/rockchip/rga/rga_drv.c +++ b/drivers/video/rockchip/rga/rga_drv.c @@ -796,6 +796,11 @@ static int rga_blit(rga_session *session, struct rga_req *req) break; } num = 2; + + if(NULL != req2) + { + kfree(req2); + } } else {